{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/48470186","id":48470186,"diff_hunk":"@@ -39,11 +39,36 @@ marionette('Browser Context Menu', function() {\n     rocketbar.goToURL(url);\n     system.shareLink();\n \n-\n     system.getActivityOptionMatching('sms').tap();\n     var smsFrame = messagesApp.waitForAppToAppear();\n     client.switchToFrame(smsFrame);\n \n     assert.equal(messagesApp.Composer.messageInput.text(), url);\n   });\n+\n+  test('save image', function() {\n+    var url = server.url('sample_image.html');\n+    rocketbar.goToURL(url);\n+    system.gotoBrowser(url);\n+\n+    var image = client.helper.waitForElement('img');\n+    actions.longPress(image, 0.5).perform(function() {\n+      system.saveImage();\n+\n+      client.switchToFrame();\n+      client.waitFor(function() {\n+        return system.toaster.displayed();\n+      });\n+\n+      client.waitFor(function() {\n+        return !system.toaster.displayed();\n+      });","path":"apps/system/test/marionette/browser_context_menu_test.js","position":28,"original_position":28,"commit_id":"860c6a2bdc7bdaf609b7dc5c1cdd7899636e2bf9","original_commit_id":"860c6a2bdc7bdaf609b7dc5c1cdd7899636e2bf9","user":{"login":"mikehenrty","id":635365,"avatar_url":"https://avatars.githubusercontent.com/u/635365?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehenrty","html_url":"https://github.com/mikehenrty","followers_url":"https://api.github.com/users/mikehenrty/followers","following_url":"https://api.github.com/users/mikehenrty/following{/other_user}","gists_url":"https://api.github.com/users/mikehenrty/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehenrty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehenrty/subscriptions","organizations_url":"https://api.github.com/users/mikehenrty/orgs","repos_url":"https://api.github.com/users/mikehenrty/repos","events_url":"https://api.github.com/users/mikehenrty/events{/privacy}","received_events_url":"https://api.github.com/users/mikehenrty/received_events","type":"User","site_admin":false},"body":"these lines starting with 58 could be shortened to:\r\n```\r\nvar toaster = system.toaster;\r\nclient.helper.waitForElementToDisappear(toaster);","created_at":"2015-12-28T09:35:26Z","updated_at":"2015-12-28T09:35:26Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/33589#discussion_r48470186","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33589","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/48470186"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/33589#discussion_r48470186"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33589"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33589","id":53828704,"html_url":"https://github.com/mozilla-b2g/gaia/pull/33589","diff_url":"https://github.com/mozilla-b2g/gaia/pull/33589.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/33589.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/33589","number":33589,"state":"open","locked":false,"title":"Bug 1219628 - Test Browser Save Image r=jlorenzo","user":{"login":"albertopq","id":368225,"avatar_url":"https://avatars.githubusercontent.com/u/368225?v=3","gravatar_id":"","url":"https://api.github.com/users/albertopq","html_url":"https://github.com/albertopq","followers_url":"https://api.github.com/users/albertopq/followers","following_url":"https://api.github.com/users/albertopq/following{/other_user}","gists_url":"https://api.github.com/users/albertopq/gists{/gist_id}","starred_url":"https://api.github.com/users/albertopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertopq/subscriptions","organizations_url":"https://api.github.com/users/albertopq/orgs","repos_url":"https://api.github.com/users/albertopq/repos","events_url":"https://api.github.com/users/albertopq/events{/privacy}","received_events_url":"https://api.github.com/users/albertopq/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-12-16T11:23:10Z","updated_at":"2015-12-28T09:35:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c6619baffbebf111934272d3d5017491ea2e402","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33589/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33589/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/33589/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/860c6a2bdc7bdaf609b7dc5c1cdd7899636e2bf9","head":{"label":"albertopq:1219628-test-save-image","ref":"1219628-test-save-image","sha":"860c6a2bdc7bdaf609b7dc5c1cdd7899636e2bf9","user":{"login":"albertopq","id":368225,"avatar_url":"https://avatars.githubusercontent.com/u/368225?v=3","gravatar_id":"","url":"https://api.github.com/users/albertopq","html_url":"https://github.com/albertopq","followers_url":"https://api.github.com/users/albertopq/followers","following_url":"https://api.github.com/users/albertopq/following{/other_user}","gists_url":"https://api.github.com/users/albertopq/gists{/gist_id}","starred_url":"https://api.github.com/users/albertopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertopq/subscriptions","organizations_url":"https://api.github.com/users/albertopq/orgs","repos_url":"https://api.github.com/users/albertopq/repos","events_url":"https://api.github.com/users/albertopq/events{/privacy}","received_events_url":"https://api.github.com/users/albertopq/received_events","type":"User","site_admin":false},"repo":{"id":23386404,"name":"gaia","full_name":"albertopq/gaia","owner":{"login":"albertopq","id":368225,"avatar_url":"https://avatars.githubusercontent.com/u/368225?v=3","gravatar_id":"","url":"https://api.github.com/users/albertopq","html_url":"https://github.com/albertopq","followers_url":"https://api.github.com/users/albertopq/followers","following_url":"https://api.github.com/users/albertopq/following{/other_user}","gists_url":"https://api.github.com/users/albertopq/gists{/gist_id}","starred_url":"https://api.github.com/users/albertopq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertopq/subscriptions","organizations_url":"https://api.github.com/users/albertopq/orgs","repos_url":"https://api.github.com/users/albertopq/repos","events_url":"https://api.github.com/users/albertopq/events{/privacy}","received_events_url":"https://api.github.com/users/albertopq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albertopq/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":true,"url":"https://api.github.com/repos/albertopq/gaia","forks_url":"https://api.github.com/repos/albertopq/gaia/forks","keys_url":"https://api.github.com/repos/albertopq/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albertopq/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albertopq/gaia/teams","hooks_url":"https://api.github.com/repos/albertopq/gaia/hooks","issue_events_url":"https://api.github.com/repos/albertopq/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/albertopq/gaia/events","assignees_url":"https://api.github.com/repos/albertopq/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/albertopq/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/albertopq/gaia/tags","blobs_url":"https://api.github.com/repos/albertopq/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albertopq/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albertopq/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/albertopq/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albertopq/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/albertopq/gaia/languages","stargazers_url":"https://api.github.com/repos/albertopq/gaia/stargazers","contributors_url":"https://api.github.com/repos/albertopq/gaia/contributors","subscribers_url":"https://api.github.com/repos/albertopq/gaia/subscribers","subscription_url":"https://api.github.com/repos/albertopq/gaia/subscription","commits_url":"https://api.github.com/repos/albertopq/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/albertopq/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/albertopq/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/albertopq/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/albertopq/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/albertopq/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albertopq/gaia/merges","archive_url":"https://api.github.com/repos/albertopq/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albertopq/gaia/downloads","issues_url":"https://api.github.com/repos/albertopq/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/albertopq/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/albertopq/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/albertopq/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albertopq/gaia/labels{/name}","releases_url":"https://api.github.com/repos/albertopq/gaia/releases{/id}","created_at":"2014-08-27T10:53:19Z","updated_at":"2014-08-27T12:10:35Z","pushed_at":"2015-12-24T10:02:54Z","git_url":"git://github.com/albertopq/gaia.git","ssh_url":"git@github.com:albertopq/gaia.git","clone_url":"https://github.com/albertopq/gaia.git","svn_url":"https://github.com/albertopq/gaia","homepage":"https://wiki.mozilla.org/B2G","size":997416,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"ef2c6f4b8b316a2b695584b961060c4a3200013a","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-12-27T22:23:00Z","pushed_at":"2015-12-28T09:15:31Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1196848,"stargazers_count":2028,"watchers_count":2028,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2578,"mirror_url":null,"open_issues_count":1292,"forks":2578,"open_issues":1292,"watchers":2028,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33589"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/33589"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/33589"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/33589/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33589/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33589/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/860c6a2bdc7bdaf609b7dc5c1cdd7899636e2bf9"}}}}