|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=382113 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 382113</title> |
|
8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
10 </head> |
|
11 <body onload="checkEvents()"> |
|
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=382113">Mozilla Bug 382113</a> |
|
13 <p id="display"></p> |
|
14 <div id="content"> |
|
15 <object type="text/html" data="bug382113_object.html" |
|
16 onload="objectGotOnload = true;"></object> |
|
17 </div> |
|
18 <pre id="test"> |
|
19 |
|
20 |
|
21 <script class="testbody" type="application/javascript"> |
|
22 |
|
23 SimpleTest.waitForExplicitFinish(); |
|
24 var childGotOnload = false; |
|
25 var objectGotOnload = false; |
|
26 |
|
27 /** Test for Bug 100533 **/ |
|
28 function checkEvents() { |
|
29 is(childGotOnload, true, "Child got load event"); |
|
30 is(objectGotOnload, true, "Object got load event"); |
|
31 SimpleTest.finish(); |
|
32 } |
|
33 </script> |
|
34 |
|
35 </pre> |
|
36 </body> |
|
37 </html> |
|
38 |