OLD | NEW |
| (Empty) |
1 <html> | |
2 <body onload="notifyLoaded()"> | |
3 <script> | |
4 function notifyLoaded() { | |
5 top.innerHasLoaded(); | |
6 } | |
7 | |
8 // After the top frame has accessed the document of this frame, we | |
9 // test that the document wrapper was created in this context and | |
10 // not in the top context. | |
11 function runTest() { | |
12 var paragraph = document.createElement('p'); | |
13 if (HTMLElement.prototype.isPrototypeOf(paragraph)) { | |
14 top.writeOutput("PASS"); | |
15 } else { | |
16 top.writeOutput("FAIL"); | |
17 } | |
18 if (window.layoutTestController) { | |
19 layoutTestController.notifyDone(); | |
20 } | |
21 } | |
22 </script> | |
23 </body> | |
24 </html> | |
OLD | NEW |