Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / constructor-in-removed-frame.html
1 <!DOCTYPE html>
2 <p>FAIL</p>
3 <iframe src="data:text/html,FAIL"></iframe>
4 <script>
5
6 window.onload = function() {
7     if (window.testRunner) {
8         testRunner.waitUntilDone();
9         testRunner.dumpAsText();
10
11         var iframeElement = document.querySelector('iframe');
12         iframeElement.onload = function() {
13             var frame = window.frames[0];
14             iframeElement.parentNode.removeChild(iframeElement);
15
16             // The V8 bindings does not keep the frame constructor alive but at least it should not crash!
17             frame.Window;
18
19             document.body.textContent = 'PASS';
20             testRunner.notifyDone();
21         };
22         iframeElement.src = 'data:text/html,PASS';
23     }
24 };
25
26 </script>
27 </body>
28 </html>