test_bug1093686.html (1311B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1093686 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Testing effect of listener on body with respect to event retargeting</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 <script type="text/javascript"> 12 var iframe = undefined; 13 function prepareTest() { 14 SimpleTest.waitForExplicitFinish(); 15 iframe = document.getElementById("testFrame"); 16 turnOnEventRetargeting(startTest); 17 } 18 function turnOnEventRetargeting(callback) { 19 SpecialPowers.pushPrefEnv({ 20 "set": [ 21 ["ui.mouse.radius.enabled", true], 22 ["ui.mouse.radius.inputSource.touchOnly", false], 23 ["ui.mouse.radius.leftmm", 8], 24 ["ui.mouse.radius.topmm", 12], 25 ["ui.mouse.radius.rightmm", 8], 26 ["ui.mouse.radius.bottommm", 4] 27 ] 28 }, callback); 29 } 30 function startTest() { 31 iframe.src = "bug1093686_inner.html"; 32 } 33 function finishTest() { 34 SimpleTest.finish(); 35 } 36 </script> 37 </head> 38 <body onload="prepareTest()"> 39 <iframe id="testFrame" height="700" width="700"></iframe> 40 </body> 41 </html>