test_display_mode.html (1323B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1104916 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Display Mode</title> 9 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 10 <script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script> 11 <link rel="stylesheet" type="text/css" href="chrome://global/skin"/> 12 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/> 13 <script type="application/javascript"> 14 SimpleTest.waitForExplicitFinish(); 15 async function startTest() { 16 await new Promise(r => { 17 SpecialPowers.pushPrefEnv( 18 { 19 set: [ 20 ["dom.security.featurePolicy.header.enabled", true], 21 ["dom.security.featurePolicy.webidl.enabled", true], 22 ], 23 }, 24 r 25 ); 26 }); 27 // Chrome test run tests in iframe, and fullscreen is disabled by default. 28 // So run the test in a separate window. 29 window.open("display_mode.html", "display_mode", "width=500,height=500,resizable"); 30 } 31 </script> 32 </head> 33 <body onload="startTest();"> 34 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1104916">Mozilla Bug 1104916</a> 35 </div> 36 <pre id="test"> 37 </pre> 38 </body> 39 </html>