test_bug1118689.html (1126B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1118689 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 1118689</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 1118689 */ 14 SimpleTest.requestFlakyTimeout("Just need some random timeout."); 15 16 function test() { 17 // check that load event doesn't keep up being dispatched if 18 // window has been closed. 19 var win = window.open('data:text/html,<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP" onload="this.src = this.src">', 20 "", "height=100,width=100"); 21 setTimeout(function() { 22 win.close(); 23 SimpleTest.finish(); 24 }, 2500); 25 } 26 27 SimpleTest.waitForExplicitFinish(); 28 29 </script> 30 </head> 31 <body onload="test();"> 32 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1118689">Mozilla Bug 1118689</a> 33 <p id="display"></p> 34 <div id="content" style="display: none"> 35 36 </div> 37 <pre id="test"> 38 </pre> 39 </body> 40 </html>