| Index: webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html
|
| ===================================================================
|
| --- webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html (revision 0)
|
| +++ webkit/data/layout_tests/chrome/fast/dom/wrapper-context.html (revision 0)
|
| @@ -0,0 +1,33 @@
|
| +<html>
|
| +<body onload="AccessInnerDocument()">
|
| +<div id="output"></div>
|
| +<iframe id="inner" src="resources/wrapper-context-inner.html"></iframe>
|
| +<script>
|
| +if (window.layoutTestController) {
|
| + layoutTestController.waitUntilDone();
|
| + layoutTestController.dumpAsText();
|
| +}
|
| +
|
| +// Write to the output div.
|
| +function WriteOutput(s) {
|
| + var paragraph = document.createElement("p");
|
| + paragraph.innerHTML = s;
|
| + document.getElementById("output").appendChild(paragraph);
|
| +}
|
| +
|
| +// Used from the inner frame to know when this frame has accessed
|
| +// the document of the inner frame.
|
| +var innerDocument;
|
| +
|
| +// Once the inner frame has loaded, access it's document and assign
|
| +// the wrapper to innerDocument.
|
| +function AccessInnerDocument() {
|
| + if (inner.loaded) {
|
| + innerDocument = inner.document;
|
| + } else {
|
| + setTimeout(AccessInnerDocument, 100);
|
| + }
|
| +}
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|
| Property changes on: webkit\data\layout_tests\chrome\fast\dom\wrapper-context.html
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|