Add new SVGDOM SVGFEBLEND constants
[WebKit-https.git] / LayoutTests / svg / custom / clone-node.html
1 <!DOCTYPE html>
2 <script src="../../resources/js-test-pre.js"></script>
3 <script>
4
5 description('Tests cloneNode for SVGDocument.');
6
7 function className(object) {
8     return Object.prototype.toString.call(object).slice(8, -1);
9 }
10
11 var svgDoc = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg', null);
12
13 shouldBe('svgDoc.cloneNode(false).__proto__', 'XMLDocument.prototype');
14 shouldBeEqualToString('className(svgDoc.cloneNode(false))', 'XMLDocument');
15 shouldBeEqualToString('svgDoc.cloneNode(true).compatMode', 'CSS1Compat');
16
17 </script>
18 <script src="../../resources/js-test-post.js"></script>