Bug 1396232 - enable prefs needed for orientation lock test. r?ralin draft
authorJohn Lin <jolin@mozilla.com>
Mon, 04 Sep 2017 16:00:55 +0800
changeset 658485 5f4ef9cb1b7b2b41124d4dccce3b0a917dc23b62
parent 658484 6779477cc4d4c004f0de82c22c85dcc4953ca9b8
child 729676 e1e8fb92b5dfc3cb6edb25f439449ebbd5d6c06d
push id77793
push userbmo:jolin@mozilla.com
push dateMon, 04 Sep 2017 08:17:44 +0000
reviewersralin
bugs1396232
milestone57.0a1
Bug 1396232 - enable prefs needed for orientation lock test. r?ralin Also, use |run-if| instead of |skip-if| to filter the test. MozReview-Commit-ID: 5NUoSoRzqMC
toolkit/content/tests/widgets/mochitest.ini
toolkit/content/tests/widgets/test_videocontrols_orientation.html
--- a/toolkit/content/tests/widgets/mochitest.ini
+++ b/toolkit/content/tests/widgets/mochitest.ini
@@ -45,9 +45,9 @@ skip-if = toolkit == 'android' # bug 107
 skip-if = os == 'win'
 [test_videocontrols_video_noaudio.html]
 skip-if = toolkit == 'android'
 [test_bug1319301.html]
 skip-if = toolkit == 'android'
 [test_bug898940.html]
 [test_videocontrols_error.html]
 [test_videocontrols_orientation.html]
-skip-if = toolkit != 'android'
\ No newline at end of file
+run-if = toolkit == 'android'
\ No newline at end of file
--- a/toolkit/content/tests/widgets/test_videocontrols_orientation.html
+++ b/toolkit/content/tests/widgets/test_videocontrols_orientation.html
@@ -16,17 +16,19 @@
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 SimpleTest.waitForExplicitFinish();
 var video = document.getElementById("video");
 
 let onLoaded = event => {
   SpecialPowers.pushPrefEnv(
-    {"set": [["full-screen-api.allow-trusted-requests-only", false]]},
+    {"set": [["full-screen-api.allow-trusted-requests-only", false],
+             ["full-screen-api.unprefix.enabled", true],
+             ["media.videocontrols.lock-video-orientation", true]]},
     startMediaLoad);
 }
 window.addEventListener("load", onLoaded);
 
 let startMediaLoad = () => {
   // Kick off test once video has loaded, in its canplaythrough event handler.
   video.src = "video.ogg";
   video.addEventListener("canplaythrough", runTest);