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
--- 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);