blob: d8ffd1c66dbf927c3c28c4bc9ae2191c12a73eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<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>
|