Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / remove-all-children-crash.html
blob6761f1f2ab09de2cb1aa8dabed5d3021a6e3dec5
1 <body>
2 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=28697">bug 28697</a>.</p>
3 <div id="div"><p id="one"></p><p id="two">FAIL, the test did not start.</p></div>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function gc() {
9 if (typeof GCController !== "undefined")
10 GCController.collect();
11 else {
12 function gcRec(n) {
13 if (n < 1)
14 return {};
15 var temp = {i: "ab" + i + (i / 100000)};
16 temp += "foo";
17 gcRec(n-1);
19 for (var i = 0; i < 1000; i++)
20 gcRec(10)
24 var div = document.getElementById("div");
25 var two = document.getElementById("two");
26 var range = document.createRange();
27 range.setStart(two, 0);
28 range.setEnd(two, 0);
30 div.innerHTML = "FAIL, the test did not complete.";
32 gc();
34 range.startOffset;
35 div.innerHTML = "PASS, the test did not crash.";
36 if (window.testRunner) {
37 testRunner.notifyDone();
39 </script>