bug507902-frame.html (630B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Frame for watchPosition </title> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 </head> 7 <body> 8 <script type="text/javascript"> 9 10 var ok = window.parent.ok; 11 var SimpleTest = window.parent.SimpleTest; 12 13 function boom() 14 { 15 window.addEventListener("unload", function(){}); 16 window.addEventListener("devicemotion", function(){}); 17 location = "data:text/html,2"; 18 19 ok(1, "leak will be at the end of mochitests. so pass."); 20 SimpleTest.finish(); 21 } 22 23 SimpleTest.waitForExplicitFinish(); 24 25 window.addEventListener("load", function() { setTimeout(boom, 0); }); 26 27 </script> 28 </body> 29 </html>