test_bug667612.html (1048B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=667612 5 --> 6 <head> 7 <title>Test for Bug 667612</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=667612">Mozilla Bug 667612</a> 13 <p id="display"></p> 14 <div id="content" style="display: none"> 15 16 </div> 17 <pre id="test"> 18 <script class="testbody" type="text/javascript"> 19 20 xhr = new XMLHttpRequest; 21 w = new Worker("empty.js"); 22 window.addEventListener("load", null); 23 document.addEventListener("load", null); 24 document.body.addEventListener("load", null); 25 xhr.addEventListener("load", null); 26 w.addEventListener("load", null); 27 window.addEventListener("load", undefined); 28 document.addEventListener("load", undefined); 29 document.body.addEventListener("load", undefined); 30 xhr.addEventListener("load", undefined); 31 w.addEventListener("load", undefined); 32 33 ok(true, "didn't throw"); 34 35 </script> 36 </pre> 37 </body> 38 </html>