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

Side by Side Diff: LayoutTests/dom/xhtml/level3/core/nodeisequalnode18.js

Issue 740223003: Revive tests for Document.createAttributeNS() and Element.setAttributeNodeNS() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: deprecation messages Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 Copyright © 2001-2004 World Wide Web Consortium, 3 Copyright © 2001-2004 World Wide Web Consortium,
4 (Massachusetts Institute of Technology, European Research Consortium 4 (Massachusetts Institute of Technology, European Research Consortium
5 for Informatics and Mathematics, Keio University). All 5 for Informatics and Mathematics, Keio University). All
6 Rights Reserved. This work is distributed under the W3C® Software License [1] i n the 6 Rights Reserved. This work is distributed under the W3C® Software License [1] i n the
7 hope that it will be useful, but WITHOUT ANY WARRANTY; without even 7 hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 9
10 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 10 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 doc = load(docRef, "doc", "hc_staff"); 106 doc = load(docRef, "doc", "hc_staff");
107 docElem = doc.documentElement; 107 docElem = doc.documentElement;
108 108
109 rootName = docElem.tagName; 109 rootName = docElem.tagName;
110 110
111 rootNS = docElem.namespaceURI; 111 rootNS = docElem.namespaceURI;
112 112
113 domImpl = doc.implementation; 113 domImpl = doc.implementation;
114 newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); 114 newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
115 attr1 = doc.createAttribute("title"); 115 attr1 = doc.createAttributeNS(nullNSURI,"title");
116 attr2 = newDoc.adoptNode(attr1); 116 attr2 = newDoc.adoptNode(attr1);
117 117
118 if( 118 if(
119 119
120 (attr2 != null) 120 (attr2 != null)
121 121
122 ) { 122 ) {
123 isEqual = attr1.isEqualNode(attr2); 123 isEqual = attr1.isEqualNode(attr2);
124 assertTrue("nodeisequalnode18",isEqual); 124 assertTrue("nodeisequalnode18",isEqual);
125 125
126 } 126 }
127 127
128 } 128 }
129 129
130 130
131 131
132 132
133 function runTest() { 133 function runTest() {
134 nodeisequalnode18(); 134 nodeisequalnode18();
135 } 135 }
OLDNEW
« no previous file with comments | « LayoutTests/dom/xhtml/level3/core/nodeisequalnode17.js ('k') | LayoutTests/dom/xhtml/level3/core/nodeisequalnode19.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698