Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / crash-replacing-location-before-load.html
blobd8ffd1c66dbf927c3c28c4bc9ae2191c12a73eca
1 <script>
2 if (parent == window) {
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
7 function replaceHash(frag) {
8 frames[0].location.replace('#' + frag);
10 onload = function() {
11 var f = document.createElement("iframe");
12 f.src = location;
13 f.onload = function() {
14 delete f.onload;
15 replaceHash('bar');
16 if (window.testRunner)
17 testRunner.notifyDone();
19 document.body.appendChild(f);
20 replaceHash('foo');
23 </script>
24 <!-- If we do not crash, then this test was successful. -->
25 <body>PASS</body>