3 Tests that node wrappers are created in the context to which they belong.
4 You should see PASS below.
6 <div id=
"output"></div>
7 <iframe name=
"inner" src=
"resources/wrapper-context-inner.html"></iframe>
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
14 function writeOutput(s
) {
15 var paragraph
= document
.createElement("p");
16 paragraph
.innerHTML
= s
;
17 document
.getElementById("output").appendChild(paragraph
);
20 // Used to create the document wrapper.
23 // Once the inner frame has loaded, run the test.
24 function innerHasLoaded() {
25 writeOutput("Running...");
26 innerDocument
= inner
.document
;