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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/isEqualNode.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("Test the isEqualNode API.");
2
3 debug("Test isEqualNode for DocumentType nodes.");
4 var docTypeAllSet = document.implementation.createDocumentType('html', '-//W3C// DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
5 var docTypeAllSet2 = document.implementation.createDocumentType('html', '-//W3C/ /DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd') ;
6 var docTypeDifferentPublicID = document.implementation.createDocumentType('html' , 'foo', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
7 var docTypeDifferentSystemID = document.implementation.createDocumentType('html' , '-//W3C//DTD XHTML 1.0 Strict//EN', 'bar');
8
9 shouldBeTrue("docTypeAllSet.isEqualNode(docTypeAllSet2)");
10 shouldBeFalse("docTypeAllSet.isEqualNode(docTypeDifferentPublicID)");
11 shouldBeFalse("docTypeAllSet.isEqualNode(docTypeDifferentSystemID)");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698