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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Node/isEqualNode.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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: third_party/WebKit/LayoutTests/fast/dom/Node/isEqualNode.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Node/isEqualNode.html b/third_party/WebKit/LayoutTests/fast/dom/Node/isEqualNode.html
index 372276e5bf408f30f20880e1e6b783c28b3da572..a963db917a619faae36b13eb6ffa758bfb3b67d4 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Node/isEqualNode.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Node/isEqualNode.html
@@ -4,6 +4,18 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/isEqualNode.js"></script>
+<script>
+description("Test the isEqualNode API.");
+
+debug("Test isEqualNode for DocumentType nodes.");
+var docTypeAllSet = document.implementation.createDocumentType('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
+var docTypeAllSet2 = document.implementation.createDocumentType('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
+var docTypeDifferentPublicID = document.implementation.createDocumentType('html', 'foo', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
+var docTypeDifferentSystemID = document.implementation.createDocumentType('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'bar');
+
+shouldBeTrue("docTypeAllSet.isEqualNode(docTypeAllSet2)");
+shouldBeFalse("docTypeAllSet.isEqualNode(docTypeDifferentPublicID)");
+shouldBeFalse("docTypeAllSet.isEqualNode(docTypeDifferentSystemID)");
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698