Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / resources / wrapper-context-inner.html
blob6ebd58235a35a970f6df1dcea7724512889ef62c
1 <html>
2 <body onload="notifyLoaded()">
3 <script>
4 function notifyLoaded() {
5 top.innerHasLoaded();
8 // After the top frame has accessed the document of this frame, we
9 // test that the document wrapper was created in this context and
10 // not in the top context.
11 function runTest() {
12 var paragraph = document.createElement('p');
13 if (HTMLElement.prototype.isPrototypeOf(paragraph)) {
14 top.writeOutput("PASS");
15 } else {
16 top.writeOutput("FAIL");
18 if (window.testRunner) {
19 testRunner.notifyDone();
22 </script>
23 </body>
24 </html>