| Tests that node wrappers are created in the context to which they belong. |
| You should see PASS below. |
| <iframe id="inner" name="inner" src="resources/wrapper-context-inner.html"></iframe> |
| testRunner.waitUntilDone(); |
| function writeOutput(s) { |
| var paragraph = document.createElement("p"); |
| document.getElementById("output").appendChild(paragraph); |
| // Used to create the document wrapper. |
| // Once the inner frame has loaded, run the test. |
| function innerHasLoaded() { |
| writeOutput("Running..."); |
| innerDocument = inner.document; |