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

Side by Side Diff: LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition15.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 var attrNode; 96 var attrNode;
97 97
98 var docRef = null; 98 var docRef = null;
99 if (typeof(this.doc) != 'undefined') { 99 if (typeof(this.doc) != 'undefined') {
100 docRef = this.doc; 100 docRef = this.doc;
101 } 101 }
102 doc = load(docRef, "doc", "hc_staff"); 102 doc = load(docRef, "doc", "hc_staff");
103 docElem = doc.documentElement; 103 docElem = doc.documentElement;
104 104
105 docFrag = doc.createDocumentFragment(); 105 docFrag = doc.createDocumentFragment();
106 attr = doc.createAttribute("xml:lang"); 106 attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:l ang");
107 attrNode = docElem.setAttributeNode(attr); 107 attrNode = docElem.setAttributeNodeNS(attr);
108 appendedChild = docFrag.appendChild(docElem); 108 appendedChild = docFrag.appendChild(docElem);
109 docFragChild = docFrag.firstChild; 109 docFragChild = docFrag.firstChild;
110 110
111 docFragChildPosition = docFragChild.compareDocumentPosition(attr); 111 docFragChildPosition = docFragChild.compareDocumentPosition(attr);
112 assertEquals("nodecomparedocumentpositionIsContainedFollows15",20,docFragC hildPosition); 112 assertEquals("nodecomparedocumentpositionIsContainedFollows15",20,docFragC hildPosition);
113 attrPosition = attr.compareDocumentPosition(docFragChild); 113 attrPosition = attr.compareDocumentPosition(docFragChild);
114 assertEquals("nodecomparedocumentpositionPRECEEDINGContains15",10,attrPosi tion); 114 assertEquals("nodecomparedocumentpositionPRECEEDINGContains15",10,attrPosi tion);
115 115
116 } 116 }
117 117
118 118
119 119
120 120
121 function runTest() { 121 function runTest() {
122 nodecomparedocumentposition15(); 122 nodecomparedocumentposition15();
123 } 123 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698