4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
7 testRunner
.setCanOpenWindows();
8 testRunner
.setCloseRemainingWindowsWhenComplete(true);
13 <p>This test verifies that a sandboxed IFrame can close a top-level frame
14 with allow-top-navigation.
</p>
15 <button onclick=
"start()">Start Test
</button>
18 window
.wnd
= window
.open("resources/sandboxed-iframe-close-top-does-not-close.html");
22 if (window
.testRunner
)
23 testRunner
.notifyDone();
26 // In LayoutTests mode we can start automagically.