Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / range-created-in-mutation-event-crash.xhtml
blob7f7c5e5e7f13747148d99cd41513f80e769480e2
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <style></style>
4 <script>
5 <![CDATA[
7 window.onload = function () {
8 document.execCommand("SelectAll", false);
10 var range = null;
12 document.addEventListener("DOMNodeRemovedFromDocument", function () {
13 range = getSelection().getRangeAt(0);
14 },true);
16 getSelection().getRangeAt(0).extractContents();
17 range.getBoundingClientRect();
19 if (window.testRunner)
20 testRunner.dumpAsText();
22 alert("This test calls getBoundingClientRect on a range obtained inside a mutation event listener.\n"
23 + "The test passes if WebKit doesn't crash.\n\n"
24 + "PASS.");
27 ]]>
28 </script>
29 <input/>
30 </html>