Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / split-text-crash.xhtml
blobf01144453849cf3d1297b73e63363b9e8ec267b2
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body></body>
3 <script>
4 if (window.testRunner) {
5 testRunner.waitUntilDone();
6 testRunner.dumpAsText();
9 function crash() {
10 document.designMode = "on";
11 var textNode = document.body.appendChild(document.createTextNode("PASS. WebKit didn't crash."));
12 var range = document.createRange();
13 range.setStart(textNode, 0);
14 document.addEventListener("DOMNodeInserted", function () {
15 if (textNode)
16 document.body.removeChild(textNode);
17 textNode = null;
19 if (window.testRunner) {
20 GCController.collect();
21 setTimeout("testRunner.notifyDone()", 0);
23 }, true);
24 try {
25 range.insertNode(document.createTextNode(""));
26 } catch(e) { }
29 window.onload = crash;
30 </script>
31 </html>