haikuwebkit/LayoutTests/fast/loader/redirect-with-open-subframe...

16 lines
465 B
HTML

<html>
<body>
<iframe id="ifrm" src="about:blank"></iframe>
<script>
document.getElementById("ifrm").contentDocument.open();
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
var newDoc = "SUCCESS<script>if (window.testRunner) testRunner.notifyDone();</scr" + "ipt>";
setTimeout("window.location='data:text/html," + newDoc + "'", 500);
</script>
<div>FAILURE: should redirect.</div>
</body>
</html>