test_bug1447993.html (1325B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1447993 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 1447993</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 1447993 */ 14 SimpleTest.waitForExplicitFinish(); 15 16 var win; 17 function start() { 18 // This test is ported to pointerevent_click_during_parent_capture.html to 19 // check the standardized behavior. Therefore, when we delete the pref, 20 // we can remove this test. 21 SpecialPowers.pushPrefEnv({"set": [ 22 ["dom.w3c_touch_events.enabled", 1], 23 ["dom.w3c_pointer_events.dispatch_click_on_pointer_capturing_element", false], 24 ]}, 25 function() { 26 win = window.open("window_bug1447993.html", "testwindow", 27 "width=" + window.screen.width + 28 ",height=" + window.screen.height); 29 }); 30 } 31 32 function done() { 33 setTimeout(SimpleTest.finish); 34 } 35 36 </script> 37 </head> 38 <body onload="start();"> 39 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1447993">Mozilla Bug 1447993</a> 40 <p id="display"></p> 41 <div id="content" style="display: none"> 42 43 </div> 44 <pre id="test"> 45 </pre> 46 </body> 47 </html>