|
1 <?xml version="1.0"?> |
|
2 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=399502 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 399502</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> |
|
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=399502">Mozilla Bug 399502</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 <![CDATA[ |
|
20 |
|
21 /** Test for Bug 399502 **/ |
|
22 |
|
23 var xmldoc; |
|
24 function runTest() { |
|
25 xmldoc = document.implementation.createDocument("", "", null); |
|
26 xmldoc.onload = function(evt) { |
|
27 ok(true, "Onload handler didn't get called!"); |
|
28 SimpleTest.finish(); |
|
29 }; |
|
30 xmldoc.load("test_bug399502.xhtml"); |
|
31 } |
|
32 SimpleTest.waitForExplicitFinish(); |
|
33 addLoadEvent(runTest); |
|
34 |
|
35 |
|
36 ]]> |
|
37 </script> |
|
38 </pre> |
|
39 </body> |
|
40 </html> |
|
41 |