{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/22930194","id":22930194,"diff_hunk":"@@ -0,0 +1,45 @@\n+import time\n+\n+from marionette.wait import Wait\n+\n+from gaiatest import GaiaTestCase\n+from gaiatest.apps.lockscreen.app import LockScreen\n+\n+\n+class TestLockScreen(GaiaTestCase):\n+\n+    _seconds_since_epoch = 1357043430  # the time is 12:30 GMT\n+\n+    def setUp(self):\n+        GaiaTestCase.setUp(self)\n+        #self.connect_to_local_area_network()\n+\n+    def test_lockscreen_time_check(self):\n+\n+        # disable time/timezone automatic update\n+        self.data_layer.set_setting('time.clock.automatic-update.enabled', False)\n+        self.data_layer.set_setting('time.timezone.automatic-update.enabled', False)\n+\n+        # set time manually to 12:30\n+        self.data_layer.set_time(self._seconds_since_epoch * 1000)\n+        self.data_layer.set_setting('time.timezone', 'Atlantic/Reykjavik')\n+\n+        self.device.lock()\n+        lock_screen = LockScreen(self.marionette)\n+\n+        #check the time on the lockscreen and unlock.  Below check gives 10 minutes of windows\n+        #on desktop b2g, it usually takes 8 minutes to get to this point\n+        self.assertTrue('12:3' in lock_screen.time)","path":"tests/python/gaia-ui-tests/gaiatest/tests/functional/lockscreen/test_lockscreen_time_check.py","position":32,"original_position":32,"commit_id":"1d6396cbe10f5908117f14567cca1814c45ef9cd","original_commit_id":"1d6396cbe10f5908117f14567cca1814c45ef9cd","user":{"login":"JohanLorenzo","id":5907366,"avatar_url":"https://avatars.githubusercontent.com/u/5907366?v=3","gravatar_id":"","url":"https://api.github.com/users/JohanLorenzo","html_url":"https://github.com/JohanLorenzo","followers_url":"https://api.github.com/users/JohanLorenzo/followers","following_url":"https://api.github.com/users/JohanLorenzo/following{/other_user}","gists_url":"https://api.github.com/users/JohanLorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanLorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanLorenzo/subscriptions","organizations_url":"https://api.github.com/users/JohanLorenzo/orgs","repos_url":"https://api.github.com/users/JohanLorenzo/repos","events_url":"https://api.github.com/users/JohanLorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/JohanLorenzo/received_events","type":"User","site_admin":false},"body":"On my B2G desktop, it takes 9 seconds to get there, and then the test fails. How about setting the time in Settings like a user would do?","created_at":"2015-01-14T11:11:43Z","updated_at":"2015-01-14T11:11:43Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/27369#discussion_r22930194","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/27369","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/22930194"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/27369#discussion_r22930194"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/27369"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/27369","id":27332772,"html_url":"https://github.com/mozilla-b2g/gaia/pull/27369","diff_url":"https://github.com/mozilla-b2g/gaia/pull/27369.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/27369.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/27369","number":27369,"state":"open","locked":false,"title":"Bug 1118054 - Create test to catch regression in bug 1117981 - Lockscreen doesn't show updated time after being woken up from sleep","user":{"login":"npark-mozilla","id":6930774,"avatar_url":"https://avatars.githubusercontent.com/u/6930774?v=3","gravatar_id":"","url":"https://api.github.com/users/npark-mozilla","html_url":"https://github.com/npark-mozilla","followers_url":"https://api.github.com/users/npark-mozilla/followers","following_url":"https://api.github.com/users/npark-mozilla/following{/other_user}","gists_url":"https://api.github.com/users/npark-mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/npark-mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npark-mozilla/subscriptions","organizations_url":"https://api.github.com/users/npark-mozilla/orgs","repos_url":"https://api.github.com/users/npark-mozilla/repos","events_url":"https://api.github.com/users/npark-mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/npark-mozilla/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-14T08:11:42Z","updated_at":"2015-01-14T11:11:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"853ca3cfc819769dfeeb3ce74b3317f6194bd762","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/27369/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/27369/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/27369/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/1d6396cbe10f5908117f14567cca1814c45ef9cd","head":{"label":"npark-mozilla:1118054","ref":"1118054","sha":"1d6396cbe10f5908117f14567cca1814c45ef9cd","user":{"login":"npark-mozilla","id":6930774,"avatar_url":"https://avatars.githubusercontent.com/u/6930774?v=3","gravatar_id":"","url":"https://api.github.com/users/npark-mozilla","html_url":"https://github.com/npark-mozilla","followers_url":"https://api.github.com/users/npark-mozilla/followers","following_url":"https://api.github.com/users/npark-mozilla/following{/other_user}","gists_url":"https://api.github.com/users/npark-mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/npark-mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npark-mozilla/subscriptions","organizations_url":"https://api.github.com/users/npark-mozilla/orgs","repos_url":"https://api.github.com/users/npark-mozilla/repos","events_url":"https://api.github.com/users/npark-mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/npark-mozilla/received_events","type":"User","site_admin":false},"repo":{"id":18301296,"name":"gaia","full_name":"npark-mozilla/gaia","owner":{"login":"npark-mozilla","id":6930774,"avatar_url":"https://avatars.githubusercontent.com/u/6930774?v=3","gravatar_id":"","url":"https://api.github.com/users/npark-mozilla","html_url":"https://github.com/npark-mozilla","followers_url":"https://api.github.com/users/npark-mozilla/followers","following_url":"https://api.github.com/users/npark-mozilla/following{/other_user}","gists_url":"https://api.github.com/users/npark-mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/npark-mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npark-mozilla/subscriptions","organizations_url":"https://api.github.com/users/npark-mozilla/orgs","repos_url":"https://api.github.com/users/npark-mozilla/repos","events_url":"https://api.github.com/users/npark-mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/npark-mozilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/npark-mozilla/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 https://wiki.mozilla.org/Release_Management/B2G_Landing","fork":true,"url":"https://api.github.com/repos/npark-mozilla/gaia","forks_url":"https://api.github.com/repos/npark-mozilla/gaia/forks","keys_url":"https://api.github.com/repos/npark-mozilla/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npark-mozilla/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npark-mozilla/gaia/teams","hooks_url":"https://api.github.com/repos/npark-mozilla/gaia/hooks","issue_events_url":"https://api.github.com/repos/npark-mozilla/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/npark-mozilla/gaia/events","assignees_url":"https://api.github.com/repos/npark-mozilla/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/npark-mozilla/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/npark-mozilla/gaia/tags","blobs_url":"https://api.github.com/repos/npark-mozilla/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npark-mozilla/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npark-mozilla/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/npark-mozilla/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npark-mozilla/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/npark-mozilla/gaia/languages","stargazers_url":"https://api.github.com/repos/npark-mozilla/gaia/stargazers","contributors_url":"https://api.github.com/repos/npark-mozilla/gaia/contributors","subscribers_url":"https://api.github.com/repos/npark-mozilla/gaia/subscribers","subscription_url":"https://api.github.com/repos/npark-mozilla/gaia/subscription","commits_url":"https://api.github.com/repos/npark-mozilla/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/npark-mozilla/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/npark-mozilla/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/npark-mozilla/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/npark-mozilla/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/npark-mozilla/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npark-mozilla/gaia/merges","archive_url":"https://api.github.com/repos/npark-mozilla/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npark-mozilla/gaia/downloads","issues_url":"https://api.github.com/repos/npark-mozilla/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/npark-mozilla/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/npark-mozilla/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/npark-mozilla/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npark-mozilla/gaia/labels{/name}","releases_url":"https://api.github.com/repos/npark-mozilla/gaia/releases{/id}","created_at":"2014-03-31T17:15:03Z","updated_at":"2014-12-30T18:16:14Z","pushed_at":"2015-01-14T10:18:10Z","git_url":"git://github.com/npark-mozilla/gaia.git","ssh_url":"git@github.com:npark-mozilla/gaia.git","clone_url":"https://github.com/npark-mozilla/gaia.git","svn_url":"https://github.com/npark-mozilla/gaia","homepage":"https://wiki.mozilla.org/B2G","size":866516,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"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":"ce6c9b72d863c80c842c65acf3b040baf4901a97","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-01-14T05:30:24Z","pushed_at":"2015-01-14T05:30:23Z","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":1376004,"stargazers_count":1850,"watchers_count":1850,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2161,"mirror_url":null,"open_issues_count":850,"forks":2161,"open_issues":850,"watchers":1850,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/27369"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/27369"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/27369"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/27369/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/27369/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/27369/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/1d6396cbe10f5908117f14567cca1814c45ef9cd"}}}}