|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=57600 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 57600</title> |
|
8 <script type="application/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=57600">Mozilla Bug 57600</a> |
|
13 <div id="content" style="display: none"> |
|
14 |
|
15 </div> |
|
16 <pre id="test"> |
|
17 <script type="application/javascript"> |
|
18 |
|
19 /** Test for Bug 57600 **/ |
|
20 SimpleTest.waitForExplicitFinish(); |
|
21 var count = 0; |
|
22 function disp(win) { |
|
23 var d = win ? win.document : self.testname.document; |
|
24 var str = 'You should see this'; |
|
25 d.open(); |
|
26 d.write(str); |
|
27 d.close(); |
|
28 is(d.documentElement.textContent, str, "Unexpected text"); |
|
29 if (++count == 2) { |
|
30 SimpleTest.finish(); |
|
31 } |
|
32 } |
|
33 </script> |
|
34 </pre> |
|
35 <p id="display"> |
|
36 <iframe src="javascript:'<body onload="this.onerror = parent.onerror; parent.disp(self)"></body>'"> |
|
37 </iframe> |
|
38 <iframe name="testname" src="javascript:'<body onload="this.onerror = parent.onerror; parent.disp()"></body>'"> |
|
39 </iframe> |
|
40 </p> |
|
41 </body> |
|
42 </html> |