Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: LayoutTests/svg/custom/clone-node.html

Issue 23437003: Implement cloneNode for Document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698