test_bug1429572.html (1168B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1429572 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 1429572</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 <script type="application/javascript"> 12 13 /** Test for Bug 1429572 */ 14 SimpleTest.waitForExplicitFinish(); 15 16 var win; 17 function start() { 18 SpecialPowers.pushPrefEnv({"set": [["dom.w3c_touch_events.enabled", 1], 19 ["dom.w3c_touch_events.legacy_apis.enabled", true]]}, 20 function() { 21 ok(true, "Starting the test."); 22 win = window.open("window_bug1429572.html", "testwindow", 23 "width=" + window.screen.width + 24 ",height=" + window.screen.height); 25 }); 26 } 27 28 function done() { 29 setTimeout(SimpleTest.finish); 30 } 31 32 </script> 33 </head> 34 <body onload="start();"> 35 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1429572">Mozilla Bug 1429572</a> 36 <p id="display"></p> 37 <div id="content" style="display: none"> 38 39 </div> 40 <pre id="test"> 41 </pre> 42 </body> 43 </html>