Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / mutation-event-remove-inserted-node.html
blob3956b847e4a7bc8a90effe621fafc5e06d5299f7
1 <body>
3 <p>This test verifies that a mutation event that removes inserted nodes from the
4 document doesn't crash upon the insertion of a new node into the document.</p>
5 <p>PASS: You didn't crash.</p>
7 <script id="dummy"></script>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 function mutationListener(event)
15 var element = event.srcElement;
16 element.parentNode.removeChild(element);
19 document.body.addEventListener("DOMNodeInserted", mutationListener, false);
21 /* appendChild */
22 document.body.appendChild(document.createElement("script"));
24 /* insertBefore */
25 document.body.insertBefore(document.createElement("script"), document.getElementById("dummy"));
27 /* replaceChild */
28 document.body.replaceChild(document.createElement("script"), document.getElementById("dummy"));
30 /* Parser-inserted nodes don't fire mutation events. */
31 </script>
33 </body>