blob: 0f34be3a32632e230f17739cbe70900c02ffe0e3 [file] [log] [blame]
<html>
<body>
Tests that node wrappers are created in the context to which they belong.
You should see PASS below.
<br>
<div id="output"></div>
<iframe id="inner" src="resources/wrapper-context-inner.html"></iframe>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function writeOutput(s) {
var paragraph = document.createElement("p");
paragraph.innerHTML = s;
document.getElementById("output").appendChild(paragraph);
}
// Used to create the document wrapper.
var innerDocument;
// Once the inner frame has loaded, run the test.
function innerHasLoaded() {
writeOutput("Running...");
innerDocument = inner.document;
inner.runTest();
}
</script>
</body>
</html>