blob: d8ffd1c66dbf927c3c28c4bc9ae2191c12a73eca [file] [log] [blame]
darin@chromium.orgcb4788a2010-03-22 18:17:18 +00001<script>
2if (parent == window) {
rniwa@webkit.org03b9c6d2012-07-16 01:41:53 +00003 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
darin@chromium.orgcb4788a2010-03-22 18:17:18 +00006 }
7 function replaceHash(frag) {
8 frames[0].location.replace('#' + frag);
9 }
10 onload = function() {
11 var f = document.createElement("iframe");
12 f.src = location;
13 f.onload = function() {
14 delete f.onload;
15 replaceHash('bar');
rniwa@webkit.org03b9c6d2012-07-16 01:41:53 +000016 if (window.testRunner)
17 testRunner.notifyDone();
darin@chromium.orgcb4788a2010-03-22 18:17:18 +000018 }
19 document.body.appendChild(f);
20 replaceHash('foo');
21 }
22}
23</script>
24<!-- If we do not crash, then this test was successful. -->
25<body>PASS</body>