blob: d8ffd1c66dbf927c3c28c4bc9ae2191c12a73eca [file] [log] [blame]
<script>
if (parent == window) {
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function replaceHash(frag) {
frames[0].location.replace('#' + frag);
}
onload = function() {
var f = document.createElement("iframe");
f.src = location;
f.onload = function() {
delete f.onload;
replaceHash('bar');
if (window.testRunner)
testRunner.notifyDone();
}
document.body.appendChild(f);
replaceHash('foo');
}
}
</script>
<!-- If we do not crash, then this test was successful. -->
<body>PASS</body>