| Index: webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html
|
| ===================================================================
|
| --- webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html (revision 0)
|
| +++ webkit/data/layout_tests/chrome/fast/dom/resources/wrapper-context-inner.html (revision 0)
|
| @@ -0,0 +1,28 @@
|
| +<html>
|
| +<body onload="RunTest()">
|
| +<script>
|
| +// Used from the top frame to know when this frame has been loaded.
|
| +var loaded = false;
|
| +
|
| +// After the top frame has accessed the document of this frame, we
|
| +// test that the document wrapper was created in this context and
|
| +// not in the top context.
|
| +function RunTest() {
|
| + loaded = true;
|
| + if (top.innerDocument) {
|
| + var paragraph = document.createElement('p');
|
| + if (HTMLElement.prototype.isPrototypeOf(paragraph)) {
|
| + top.WriteOutput("PASS");
|
| + } else {
|
| + top.WriteOutput("FAIL");
|
| + }
|
| + if (window.layoutTestController) {
|
| + layoutTestController.notifyDone();
|
| + }
|
| + } else {
|
| + setTimeout(RunTest, 100);
|
| + }
|
| +}
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|
| Property changes on: webkit\data\layout_tests\chrome\fast\dom\resources\wrapper-context-inner.html
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|