Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / null-document-window-open-crash.html
blob542ee125a3e65327c1b7b0ea66205d1225fe5465
1 <p>This test checks for a NULL document crash that can happen when calling
2 window.open. If the test passes, you'll see a PASS message below.</p>
3 <hr>
4 <pre id="pre"></pre>
5 <iframe name="iframe" style="visibility:hidden" src="does-not-exist.bogus"></iframe> <!-- forces asynchronous load -->
6 <script>
7 <!--
8 function log(s)
10 document.getElementById("pre").appendChild(document.createTextNode(s));
13 function test()
15 window.open("javascript:'<script>parent.pass()</script>'", "iframe");
18 function pass()
20 log("PASS: You didn't crash.");
22 if (window.testRunner)
23 testRunner.notifyDone();
26 function main()
28 if (window.testRunner) {
29 testRunner.dumpAsText();
30 testRunner.waitUntilDone();
33 // setTimeout forces execution in the context of the frame
34 frames[0].setTimeout(test, 0);
37 main();
38 -->
39 </script>