4 <title>Null frame access tests</title>
5 <script src="../../../resources/js-test.js"></script>
7 description("This tests access to a window with a null frame. You should see \"PASS\" for each of the three tests below.");
9 window.jsTestIsAsync = true;
10 window.onload = function() {
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 testRunner.waitUntilDone();
16 var tag = document.getElementById('subframe');
17 var win = tag.contentWindow;
18 // remove the element so the window has a null frame
19 tag.parentNode.removeChild(tag);
21 // schedule to run after the frame is null
23 debug("missing property: " + (win.test || 'PASS'))
24 debug("missing array index: " + (win[20] || 'PASS'));
25 debug("missing interface object: " + (win.Comment || 'PASS'));
32 <iframe id="subframe" src="data:text/html,<script>window.test='FAIL ... ';window[20]='FAIL ... ';</script>" />