Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 4920742-2.html
blob79601f4ea5655244497cda5026d75d85ce4ce457
1 <p>This tested for a crash when performing Range::extractContents on a range that has had the start or end removed from the document.</p>
2 <p>It's now impossible to create a range like this, but at one point with an earlier version of WebKit, it was possible.</p>
3 <div id="div" contenteditable="true">text <a href="http://www.apple.com/">link</a></div>
4 <ul id="console"></ul>
6 <script>
7 function log(str) {
8 var li = document.createElement("li");
9 li.appendChild(document.createTextNode(str));
10 var console = document.getElementById("console");
11 console.appendChild(li);
14 if (window.testRunner)
15 window.testRunner.dumpAsText();
17 var div = document.getElementById("div");
18 var text = div.firstChild;
19 var link = div.lastChild;
20 var r = document.createRange();
21 r.setStart(text, 0);
22 r.setEnd(link, 0);
23 text.parentNode.removeChild(text);
24 r.extractContents();
25 log("No crash means success!");
26 </script>