Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / import-document-fragment.html
blob88ef0c932fbd962e39af9ddc4b8e2d114ccc5108
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
5 try {
6 var xmld = new DOMParser().parseFromString( "<doc/>", "text/xml");
8 var fragment = document.createDocumentFragment();
9 fragment.appendChild(document.createTextNode("1"));
10 fragment.appendChild(document.createTextNode("2"));
12 var importedFragment = xmld.importNode(fragment, true);
13 xmld.firstChild.appendChild(importedFragment);
14 if (xmld.firstChild.textContent != "12")
15 throw "wrong imported DOM tree: '" + xmld.firstChild.textContent + "'";
17 document.write("<div>SUCCESS</div>");
18 } catch (ex) {
19 document.write("<div>" + ex + "</div>");
21 </script>