Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / clone-node.html
bloba624e8356ef938f4c17f2d1b27345bc1cd9356e6
1 <!DOCTYPE html>
2 <link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode">
3 <script src="../../resources/js-test.js"></script>
4 <script>
6 description('Tests cloneNode for SVGDocument.');
8 function className(object) {
9 return Object.prototype.toString.call(object).slice(8, -1);
12 var svgDoc = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg', null);
14 shouldBe('svgDoc.cloneNode(false).__proto__', 'XMLDocument.prototype');
15 shouldBeEqualToString('className(svgDoc.cloneNode(false))', 'XMLDocument');
16 shouldBeEqualToString('svgDoc.cloneNode(true).compatMode', 'CSS1Compat');
18 </script>