{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments/26106768","id":26106768,"diff_hunk":"@@ -0,0 +1,109 @@\n+# This Source Code Form is subject to the terms of the Mozilla Public\n+# License, v. 2.0. If a copy of the MPL was not distributed with this\n+# file, You can obtain one at http://mozilla.org/MPL/2.0/.\n+\n+from marionette_driver import expected\n+\n+from firefox_ui_harness.testcase import FirefoxTestCase\n+\n+\n+class TestGreenLarry(FirefoxTestCase):\n+\n+    def setUp(self):\n+        FirefoxTestCase.setUp(self)\n+\n+        self.url = 'https://ssl-ev.mozqa.com/'\n+\n+        self.identity_popup = self.browser.navbar.locationbar.identity_popup\n+\n+    def tearDown(self):\n+        try:\n+            # TODO: PR 105/115: insure identity_popup closes\n+            self.windows.close_all([self.browser])\n+        finally:\n+            FirefoxTestCase.tearDown(self)\n+\n+    def test_green_larry(self):\n+        with self.marionette.using_context('content'):\n+            self.marionette.navigate(self.url)\n+\n+        # Get the information from the certificate\n+        cert = self.browser.tabbar.selected_tab.certificate\n+        address = self.security.get_address_from_certificate(cert)\n+\n+        # Check the identity popup label displays\n+        self.assertEqual(self.identity_popup.organization_label.get_attribute('value'),\n+                         cert['organization'])\n+        self.assertEqual(self.identity_popup.country_label.get_attribute('value'),\n+                         '(' + address['country'] + ')')\n+\n+        # Check the favicon\n+        # TODO: find a better way to check, e.g., mozmill's isDisplayed\n+        favicon = self.browser.navbar.locationbar.favicon\n+        self.wait_for_condition(lambda _: favicon.get_attribute('hidden') == 'false')\n+\n+        # Check the identity popup box\n+        self.assertEqual(self.identity_popup.box.get_attribute('className'),\n+                         'verifiedIdentity')\n+\n+        self.identity_popup.box.click()\n+        self.wait_for_condition(expected.element_present(\n+                                lambda _: self.identity_popup.popup))","path":"firefox_ui_tests/remote/security/test_green_larry.py","position":51,"original_position":51,"commit_id":"5fd3d84e0b8c7b6d0ff34a90babccafd70300214","original_commit_id":"5fd3d84e0b8c7b6d0ff34a90babccafd70300214","user":{"login":"whimboo","id":129603,"avatar_url":"https://avatars.githubusercontent.com/u/129603?v=3","gravatar_id":"","url":"https://api.github.com/users/whimboo","html_url":"https://github.com/whimboo","followers_url":"https://api.github.com/users/whimboo/followers","following_url":"https://api.github.com/users/whimboo/following{/other_user}","gists_url":"https://api.github.com/users/whimboo/gists{/gist_id}","starred_url":"https://api.github.com/users/whimboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whimboo/subscriptions","organizations_url":"https://api.github.com/users/whimboo/orgs","repos_url":"https://api.github.com/users/whimboo/repos","events_url":"https://api.github.com/users/whimboo/events{/privacy}","received_events_url":"https://api.github.com/users/whimboo/received_events","type":"User","site_admin":false},"body":"This doesn't look right to me. We are waiting for the popup to be open, and not that it exists. This wait will return immediately.","created_at":"2015-03-10T09:15:29Z","updated_at":"2015-03-10T09:15:29Z","html_url":"https://github.com/mozilla/firefox-ui-tests/pull/120#discussion_r26106768","pull_request_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/120","_links":{"self":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments/26106768"},"html":{"href":"https://github.com/mozilla/firefox-ui-tests/pull/120#discussion_r26106768"},"pull_request":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/120","id":30739352,"html_url":"https://github.com/mozilla/firefox-ui-tests/pull/120","diff_url":"https://github.com/mozilla/firefox-ui-tests/pull/120.diff","patch_url":"https://github.com/mozilla/firefox-ui-tests/pull/120.patch","issue_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/120","number":120,"state":"open","locked":false,"title":"Bug 1132651 - Convert Mozmill testGreenLarry","user":{"login":"galgeek","id":3253863,"avatar_url":"https://avatars.githubusercontent.com/u/3253863?v=3","gravatar_id":"","url":"https://api.github.com/users/galgeek","html_url":"https://github.com/galgeek","followers_url":"https://api.github.com/users/galgeek/followers","following_url":"https://api.github.com/users/galgeek/following{/other_user}","gists_url":"https://api.github.com/users/galgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/galgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galgeek/subscriptions","organizations_url":"https://api.github.com/users/galgeek/orgs","repos_url":"https://api.github.com/users/galgeek/repos","events_url":"https://api.github.com/users/galgeek/events{/privacy}","received_events_url":"https://api.github.com/users/galgeek/received_events","type":"User","site_admin":false},"body":"https://bugzilla.mozilla.org/show_bug.cgi?id=1132651","created_at":"2015-03-09T06:49:57Z","updated_at":"2015-03-10T09:15:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a6b153570ca315cbc96f5389faae1d9e28c2c60","assignee":{"login":"galgeek","id":3253863,"avatar_url":"https://avatars.githubusercontent.com/u/3253863?v=3","gravatar_id":"","url":"https://api.github.com/users/galgeek","html_url":"https://github.com/galgeek","followers_url":"https://api.github.com/users/galgeek/followers","following_url":"https://api.github.com/users/galgeek/following{/other_user}","gists_url":"https://api.github.com/users/galgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/galgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galgeek/subscriptions","organizations_url":"https://api.github.com/users/galgeek/orgs","repos_url":"https://api.github.com/users/galgeek/repos","events_url":"https://api.github.com/users/galgeek/events{/privacy}","received_events_url":"https://api.github.com/users/galgeek/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/120/commits","review_comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/120/comments","review_comment_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/120/comments","statuses_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/5fd3d84e0b8c7b6d0ff34a90babccafd70300214","head":{"label":"galgeek:greenLarry","ref":"greenLarry","sha":"5fd3d84e0b8c7b6d0ff34a90babccafd70300214","user":{"login":"galgeek","id":3253863,"avatar_url":"https://avatars.githubusercontent.com/u/3253863?v=3","gravatar_id":"","url":"https://api.github.com/users/galgeek","html_url":"https://github.com/galgeek","followers_url":"https://api.github.com/users/galgeek/followers","following_url":"https://api.github.com/users/galgeek/following{/other_user}","gists_url":"https://api.github.com/users/galgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/galgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galgeek/subscriptions","organizations_url":"https://api.github.com/users/galgeek/orgs","repos_url":"https://api.github.com/users/galgeek/repos","events_url":"https://api.github.com/users/galgeek/events{/privacy}","received_events_url":"https://api.github.com/users/galgeek/received_events","type":"User","site_admin":false},"repo":{"id":29157462,"name":"firefox-ui-tests","full_name":"galgeek/firefox-ui-tests","owner":{"login":"galgeek","id":3253863,"avatar_url":"https://avatars.githubusercontent.com/u/3253863?v=3","gravatar_id":"","url":"https://api.github.com/users/galgeek","html_url":"https://github.com/galgeek","followers_url":"https://api.github.com/users/galgeek/followers","following_url":"https://api.github.com/users/galgeek/following{/other_user}","gists_url":"https://api.github.com/users/galgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/galgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galgeek/subscriptions","organizations_url":"https://api.github.com/users/galgeek/orgs","repos_url":"https://api.github.com/users/galgeek/repos","events_url":"https://api.github.com/users/galgeek/events{/privacy}","received_events_url":"https://api.github.com/users/galgeek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/galgeek/firefox-ui-tests","description":"","fork":true,"url":"https://api.github.com/repos/galgeek/firefox-ui-tests","forks_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/forks","keys_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/teams","hooks_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/hooks","issue_events_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/issues/events{/number}","events_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/events","assignees_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/assignees{/user}","branches_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/branches{/branch}","tags_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/tags","blobs_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/languages","stargazers_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/stargazers","contributors_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/contributors","subscribers_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/subscribers","subscription_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/subscription","commits_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/contents/{+path}","compare_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/merges","archive_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/downloads","issues_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/issues{/number}","pulls_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/labels{/name}","releases_url":"https://api.github.com/repos/galgeek/firefox-ui-tests/releases{/id}","created_at":"2015-01-12T21:18:46Z","updated_at":"2015-03-10T06:28:19Z","pushed_at":"2015-03-10T06:29:04Z","git_url":"git://github.com/galgeek/firefox-ui-tests.git","ssh_url":"git@github.com:galgeek/firefox-ui-tests.git","clone_url":"https://github.com/galgeek/firefox-ui-tests.git","svn_url":"https://github.com/galgeek/firefox-ui-tests","homepage":null,"size":1558,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"16f5d24232ceff687c6c36f1eadc4fbcfbd6e0ab","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":25004372,"name":"firefox-ui-tests","full_name":"mozilla/firefox-ui-tests","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/firefox-ui-tests","description":"","fork":false,"url":"https://api.github.com/repos/mozilla/firefox-ui-tests","forks_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/forks","keys_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/teams","hooks_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/hooks","issue_events_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/events","assignees_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/tags","blobs_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/languages","stargazers_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/stargazers","contributors_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/contributors","subscribers_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/subscribers","subscription_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/subscription","commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/merges","archive_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/downloads","issues_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/releases{/id}","created_at":"2014-10-09T19:09:05Z","updated_at":"2015-03-09T21:49:19Z","pushed_at":"2015-03-09T21:49:19Z","git_url":"git://github.com/mozilla/firefox-ui-tests.git","ssh_url":"git@github.com:mozilla/firefox-ui-tests.git","clone_url":"https://github.com/mozilla/firefox-ui-tests.git","svn_url":"https://github.com/mozilla/firefox-ui-tests","homepage":null,"size":2237,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":13,"forks":20,"open_issues":13,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/120"},"html":{"href":"https://github.com/mozilla/firefox-ui-tests/pull/120"},"issue":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/120"},"comments":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/5fd3d84e0b8c7b6d0ff34a90babccafd70300214"}}}}