Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / mutation-during-append-child.html
blobe1aab11434abfd32e42447b474d864155b18b03f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div>
8 <div id="child"></div>
9 <div id="newparent"></div>
10 </div>
11 <script>
12 description("Ensures that appendChild() throws an exception if mutation even handler does something wrong");
14 var listener = function() {
15 document.removeEventListener("DOMNodeRemoved", listener, false);
16 child.appendChild(newparent);
18 document.addEventListener("DOMNodeRemoved", listener, false);
19 shouldThrow("newparent.appendChild(child);", '"HierarchyRequestError: Failed to execute \'appendChild\' on \'Node\': The new child element contains the parent."');
20 </script>
21 </body>
22 </html>