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