Bug 1302976 part 1 - Make tests not rely on chrome privilege of fullscreen. r?jmaher draft
authorXidorn Quan <me@upsuper.org>
Mon, 19 Sep 2016 14:43:40 +1000
changeset 414983 e17b1335c4e8262391b3f298e4a1bad0c952ec06
parent 414764 1c88ef5d84f1f890ffb2a4150afe1e5e6482a56b
child 414984 9bc53fafe10b30a93a2c2991b1381bbe48b52343
push id29768
push userxquan@mozilla.com
push dateMon, 19 Sep 2016 05:02:40 +0000
reviewersjmaher
bugs1302976
milestone51.0a1
Bug 1302976 part 1 - Make tests not rely on chrome privilege of fullscreen. r?jmaher MozReview-Commit-ID: Db1A61zVdqD
dom/tests/mochitest/chrome/file_MozDomFullscreen.html
layout/style/test/chrome/chrome.ini
layout/style/test/chrome/test_display_mode.html
testing/mochitest/harness.xul
--- a/dom/tests/mochitest/chrome/file_MozDomFullscreen.html
+++ b/dom/tests/mochitest/chrome/file_MozDomFullscreen.html
@@ -1,8 +1,8 @@
 <html>
 <head>
 </head>
 <body style="background-color: blue;">
 <p>Outer doc</p>
-<iframe id="innerFrame" src="http://mochi.test:8888/"></iframe>
+<iframe id="innerFrame" allowfullscreen src="http://mochi.test:8888/"></iframe>
 </body>
 </html>
--- a/layout/style/test/chrome/chrome.ini
+++ b/layout/style/test/chrome/chrome.ini
@@ -10,13 +10,14 @@ support-files =
   mismatch.png
 
 [test_author_specified_style.html]
 [test_bug418986-2.xul]
 [test_bug1157097.html]
 [test_bug1160724.xul]
 [test_bug535806.xul]
 [test_display_mode.html]
+tags = fullscreen
 [test_display_mode_reflow.html]
 tags = fullscreen
 [test_hover.html]
 skip-if = buildapp == 'mulet'
 [test_moz_document_rules.html]
--- a/layout/style/test/chrome/test_display_mode.html
+++ b/layout/style/test/chrome/test_display_mode.html
@@ -78,17 +78,17 @@ add_task(function* () {
   ok(!document.mozFullScreenElement, "window exited fullscreen");
   shouldNotApply("all and (display-mode: fullscreen)");
   shouldApply("all and (display-mode: browser)");
 });
   </script>
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1104916">Mozilla Bug 1104916</a>
-<iframe id="subdoc" src="http://mochi.test:8888/tests/layout/style/test/media_queries_iframe.html"></iframe>
+<iframe id="subdoc" allowfullscreen src="http://mochi.test:8888/tests/layout/style/test/media_queries_iframe.html"></iframe>
 <p id="display"></p>
 <div id="content" style="display: none">
 
 </div>
 <pre id="test">
 </pre>
 </body>
 </html>
--- a/testing/mochitest/harness.xul
+++ b/testing/mochitest/harness.xul
@@ -79,17 +79,17 @@ function linkAndHookup(links) {
           <h2 id="fail">Todo: <span id="todo-count">0</span></h2>
         </div>
         <div class="clear"></div>
         <div id="current-test">
           <b>Currently Executing: <span id="current-test-path">_</span></b>
         </div>
         <div class="clear"></div>
         <div class="frameholder">
-          <iframe type="content" id="testframe" width="550" height="350"></iframe>
+          <iframe type="content" id="testframe" allowfullscreen="true" width="550" height="350"></iframe>
         </div>
         <div class="clear"></div>
         <div class="toggle">
           <a href="#" id="toggleNonTests">Show Non-Tests</a>
           <br />
         </div>
         <div id="wrapper">
           <table cellpadding="0" cellspacing="0">