| Index: LayoutTests/svg/custom/clone-node.html
|
| diff --git a/LayoutTests/svg/custom/clone-node.html b/LayoutTests/svg/custom/clone-node.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6bbfcca6d5fc5f3b50fd1711e8a77ba09278b248
|
| --- /dev/null
|
| +++ b/LayoutTests/svg/custom/clone-node.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode">
|
| +<script src="../../fast/js/resources/js-test-pre.js"></script>
|
| +<script>
|
| +
|
| +description('Tests cloneNode for SVGDocument.');
|
| +
|
| +function className(object) {
|
| + return Object.prototype.toString.call(object).slice(8, -1);
|
| +}
|
| +
|
| +var svgDoc = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg', null);
|
| +
|
| +shouldBe('svgDoc.cloneNode(false).__proto__', 'SVGDocument.prototype');
|
| +shouldBeEqualToString('className(svgDoc.cloneNode(false))', 'SVGDocument');
|
| +shouldBeEqualToString('svgDoc.cloneNode(true).compatMode', 'CSS1Compat');
|
| +
|
| +</script>
|
| +<script src="../../fast/js/resources/js-test-post.js"></script>
|
|
|