OLD | NEW |
| (Empty) |
1 <html> | |
2 <body> | |
3 Tests that node wrappers are created in the context to which they belong. | |
4 You should see PASS below. | |
5 <br> | |
6 <div id="output"></div> | |
7 <iframe id="inner" src="resources/wrapper-context-inner.html"></iframe> | |
8 <script> | |
9 if (window.layoutTestController) { | |
10 layoutTestController.dumpAsText(); | |
11 layoutTestController.waitUntilDone(); | |
12 } | |
13 | |
14 function writeOutput(s) { | |
15 var paragraph = document.createElement("p"); | |
16 paragraph.innerHTML = s; | |
17 document.getElementById("output").appendChild(paragraph); | |
18 } | |
19 | |
20 // Used to create the document wrapper. | |
21 var innerDocument; | |
22 | |
23 // Once the inner frame has loaded, run the test. | |
24 function innerHasLoaded() { | |
25 writeOutput("Running..."); | |
26 innerDocument = inner.document; | |
27 inner.runTest(); | |
28 } | |
29 </script> | |
30 </body> | |
31 </html> | |
OLD | NEW |