{"action":"created","comment":{"url":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/comments/40477216","id":40477216,"diff_hunk":"@@ -0,0 +1,66 @@\n+# This Source Code Form is subject to the terms of the Mozilla Public\r\n+# License, v. 2.0. If a copy of the MPL was not distributed with this\r\n+# file, You can obtain one at http://mozilla.org/MPL/2.0/.\r\n+\r\n+from media_test_harness.testcase import MediaTestCase\r\n+from firefox_media_tests.playback.video_playback_tests_mixin import (\r\n+    VideoPlaybackTestsMixin\r\n+)\r\n+\r\n+\r\n+class TestBasicNetflixPlayback(MediaTestCase,\r\n+                               VideoPlaybackTestsMixin):\r\n+\r\n+    def setUp(self):\r\n+        super(TestBasicNetflixPlayback, self).setUp()\r\n+        self.set_eme_prefs()\r\n+        assert(self.check_eme_prefs())\r\n+\r\n+    def set_eme_prefs(self):\r\n+        with self.marionette.using_context('chrome'):\r\n+            self.prefs.set_pref('media.gmp.trial-create.enabled', False)\r\n+\r\n+    def check_eme_prefs(self):\r\n+        prefs_ok = True\r\n+        with self.marionette.using_context('chrome'):\r\n+            mediasource_enabled = self.prefs.get_pref(\r\n+                'media.mediasource.enabled'\r\n+            )\r\n+            if mediasource_enabled is None or not mediasource_enabled:\r","path":"firefox_media_tests/playback/netflix/test_basic_playback.py","position":29,"original_position":29,"commit_id":"75a41ef471d01031c1b8b66f79fadb048fbf01bc","original_commit_id":"75a41ef471d01031c1b8b66f79fadb048fbf01bc","user":{"login":"mjzffr","id":6024326,"avatar_url":"https://avatars.githubusercontent.com/u/6024326?v=3","gravatar_id":"","url":"https://api.github.com/users/mjzffr","html_url":"https://github.com/mjzffr","followers_url":"https://api.github.com/users/mjzffr/followers","following_url":"https://api.github.com/users/mjzffr/following{/other_user}","gists_url":"https://api.github.com/users/mjzffr/gists{/gist_id}","starred_url":"https://api.github.com/users/mjzffr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjzffr/subscriptions","organizations_url":"https://api.github.com/users/mjzffr/orgs","repos_url":"https://api.github.com/users/mjzffr/repos","events_url":"https://api.github.com/users/mjzffr/events{/privacy}","received_events_url":"https://api.github.com/users/mjzffr/received_events","type":"User","site_admin":false},"body":"Can't this just be `if not mediasource_enabled:`?","created_at":"2015-09-25T21:25:17Z","updated_at":"2015-09-25T21:25:17Z","html_url":"https://github.com/mjzffr/firefox-media-tests/pull/23#discussion_r40477216","pull_request_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/comments/40477216"},"html":{"href":"https://github.com/mjzffr/firefox-media-tests/pull/23#discussion_r40477216"},"pull_request":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/23","id":45717886,"html_url":"https://github.com/mjzffr/firefox-media-tests/pull/23","diff_url":"https://github.com/mjzffr/firefox-media-tests/pull/23.diff","patch_url":"https://github.com/mjzffr/firefox-media-tests/pull/23.patch","issue_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/issues/23","number":23,"state":"open","locked":false,"title":"Bug 1207324: Handle EME prefs for Netflix","user":{"login":"sydvicious","id":984554,"avatar_url":"https://avatars.githubusercontent.com/u/984554?v=3","gravatar_id":"","url":"https://api.github.com/users/sydvicious","html_url":"https://github.com/sydvicious","followers_url":"https://api.github.com/users/sydvicious/followers","following_url":"https://api.github.com/users/sydvicious/following{/other_user}","gists_url":"https://api.github.com/users/sydvicious/gists{/gist_id}","starred_url":"https://api.github.com/users/sydvicious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sydvicious/subscriptions","organizations_url":"https://api.github.com/users/sydvicious/orgs","repos_url":"https://api.github.com/users/sydvicious/repos","events_url":"https://api.github.com/users/sydvicious/events{/privacy}","received_events_url":"https://api.github.com/users/sydvicious/received_events","type":"User","site_admin":false},"body":"Set media.gmp.trial-create.enabled so that Silverlight is not prompted. Check MSE and EME prefs before running tests. Refactor basic video tests.","created_at":"2015-09-22T21:15:30Z","updated_at":"2015-09-25T21:25:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"353c5d27a0b5d268a6a1eea946ac4c2864ef3a54","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/23/commits","review_comments_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/23/comments","review_comment_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/issues/23/comments","statuses_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/statuses/75a41ef471d01031c1b8b66f79fadb048fbf01bc","head":{"label":"sydvicious:bug1207324-netflix-eme-prefs","ref":"bug1207324-netflix-eme-prefs","sha":"75a41ef471d01031c1b8b66f79fadb048fbf01bc","user":{"login":"sydvicious","id":984554,"avatar_url":"https://avatars.githubusercontent.com/u/984554?v=3","gravatar_id":"","url":"https://api.github.com/users/sydvicious","html_url":"https://github.com/sydvicious","followers_url":"https://api.github.com/users/sydvicious/followers","following_url":"https://api.github.com/users/sydvicious/following{/other_user}","gists_url":"https://api.github.com/users/sydvicious/gists{/gist_id}","starred_url":"https://api.github.com/users/sydvicious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sydvicious/subscriptions","organizations_url":"https://api.github.com/users/sydvicious/orgs","repos_url":"https://api.github.com/users/sydvicious/repos","events_url":"https://api.github.com/users/sydvicious/events{/privacy}","received_events_url":"https://api.github.com/users/sydvicious/received_events","type":"User","site_admin":false},"repo":{"id":33691401,"name":"firefox-media-tests","full_name":"sydvicious/firefox-media-tests","owner":{"login":"sydvicious","id":984554,"avatar_url":"https://avatars.githubusercontent.com/u/984554?v=3","gravatar_id":"","url":"https://api.github.com/users/sydvicious","html_url":"https://github.com/sydvicious","followers_url":"https://api.github.com/users/sydvicious/followers","following_url":"https://api.github.com/users/sydvicious/following{/other_user}","gists_url":"https://api.github.com/users/sydvicious/gists{/gist_id}","starred_url":"https://api.github.com/users/sydvicious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sydvicious/subscriptions","organizations_url":"https://api.github.com/users/sydvicious/orgs","repos_url":"https://api.github.com/users/sydvicious/repos","events_url":"https://api.github.com/users/sydvicious/events{/privacy}","received_events_url":"https://api.github.com/users/sydvicious/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sydvicious/firefox-media-tests","description":"","fork":true,"url":"https://api.github.com/repos/sydvicious/firefox-media-tests","forks_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/forks","keys_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/teams","hooks_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/hooks","issue_events_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/issues/events{/number}","events_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/events","assignees_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/assignees{/user}","branches_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/branches{/branch}","tags_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/tags","blobs_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/languages","stargazers_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/stargazers","contributors_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/contributors","subscribers_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/subscribers","subscription_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/subscription","commits_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/contents/{+path}","compare_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/merges","archive_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/downloads","issues_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/issues{/number}","pulls_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/labels{/name}","releases_url":"https://api.github.com/repos/sydvicious/firefox-media-tests/releases{/id}","created_at":"2015-04-09T20:35:35Z","updated_at":"2015-05-07T22:18:48Z","pushed_at":"2015-09-24T19:28:05Z","git_url":"git://github.com/sydvicious/firefox-media-tests.git","ssh_url":"git@github.com:sydvicious/firefox-media-tests.git","clone_url":"https://github.com/sydvicious/firefox-media-tests.git","svn_url":"https://github.com/sydvicious/firefox-media-tests","homepage":null,"size":464,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"mjzffr:master","ref":"master","sha":"b11d6c3d7f6af166be314d2ac6673e78c1edb566","user":{"login":"mjzffr","id":6024326,"avatar_url":"https://avatars.githubusercontent.com/u/6024326?v=3","gravatar_id":"","url":"https://api.github.com/users/mjzffr","html_url":"https://github.com/mjzffr","followers_url":"https://api.github.com/users/mjzffr/followers","following_url":"https://api.github.com/users/mjzffr/following{/other_user}","gists_url":"https://api.github.com/users/mjzffr/gists{/gist_id}","starred_url":"https://api.github.com/users/mjzffr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjzffr/subscriptions","organizations_url":"https://api.github.com/users/mjzffr/orgs","repos_url":"https://api.github.com/users/mjzffr/repos","events_url":"https://api.github.com/users/mjzffr/events{/privacy}","received_events_url":"https://api.github.com/users/mjzffr/received_events","type":"User","site_admin":false},"repo":{"id":30950784,"name":"firefox-media-tests","full_name":"mjzffr/firefox-media-tests","owner":{"login":"mjzffr","id":6024326,"avatar_url":"https://avatars.githubusercontent.com/u/6024326?v=3","gravatar_id":"","url":"https://api.github.com/users/mjzffr","html_url":"https://github.com/mjzffr","followers_url":"https://api.github.com/users/mjzffr/followers","following_url":"https://api.github.com/users/mjzffr/following{/other_user}","gists_url":"https://api.github.com/users/mjzffr/gists{/gist_id}","starred_url":"https://api.github.com/users/mjzffr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjzffr/subscriptions","organizations_url":"https://api.github.com/users/mjzffr/orgs","repos_url":"https://api.github.com/users/mjzffr/repos","events_url":"https://api.github.com/users/mjzffr/events{/privacy}","received_events_url":"https://api.github.com/users/mjzffr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjzffr/firefox-media-tests","description":"Marionette Python tests for media playback in Mozilla Firefox. ","fork":false,"url":"https://api.github.com/repos/mjzffr/firefox-media-tests","forks_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/forks","keys_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/teams","hooks_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/hooks","issue_events_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/issues/events{/number}","events_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/events","assignees_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/assignees{/user}","branches_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/branches{/branch}","tags_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/tags","blobs_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/languages","stargazers_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/stargazers","contributors_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/contributors","subscribers_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/subscribers","subscription_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/subscription","commits_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/contents/{+path}","compare_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/merges","archive_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/downloads","issues_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/issues{/number}","pulls_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/labels{/name}","releases_url":"https://api.github.com/repos/mjzffr/firefox-media-tests/releases{/id}","created_at":"2015-02-18T03:40:26Z","updated_at":"2015-08-10T20:07:54Z","pushed_at":"2015-09-24T19:27:12Z","git_url":"git://github.com/mjzffr/firefox-media-tests.git","ssh_url":"git@github.com:mjzffr/firefox-media-tests.git","clone_url":"https://github.com/mjzffr/firefox-media-tests.git","svn_url":"https://github.com/mjzffr/firefox-media-tests","homepage":"https://wiki.mozilla.org/Auto-tools/Projects/Platform_Quality/Firefox_Media_Tests","size":755,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/23"},"html":{"href":"https://github.com/mjzffr/firefox-media-tests/pull/23"},"issue":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/issues/23"},"comments":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/mjzffr/firefox-media-tests/statuses/75a41ef471d01031c1b8b66f79fadb048fbf01bc"}}}}