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

Side by Side Diff: LayoutTests/dom/xhtml/level3/core/nodereplacechild36.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 var oldChild; 90 var oldChild;
91 var newChild; 91 var newChild;
92 var nodeValue; 92 var nodeValue;
93 var replaced; 93 var replaced;
94 94
95 var docRef = null; 95 var docRef = null;
96 if (typeof(this.doc) != 'undefined') { 96 if (typeof(this.doc) != 'undefined') {
97 docRef = this.doc; 97 docRef = this.doc;
98 } 98 }
99 doc = load(docRef, "doc", "hc_staff"); 99 doc = load(docRef, "doc", "hc_staff");
100 parent = doc.createAttribute("xml:lang"); 100 parent = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml :lang");
101 oldChild = doc.createEntityReference("delta"); 101 oldChild = doc.createEntityReference("delta");
102 newChild = doc.createTextNode("Text"); 102 newChild = doc.createTextNode("Text");
103 103
104 { 104 {
105 success = false; 105 success = false;
106 try { 106 try {
107 replaced = parent.replaceChild(newChild,oldChild); 107 replaced = parent.replaceChild(newChild,oldChild);
108 } 108 }
109 catch(ex) { 109 catch(ex) {
110 success = (typeof(ex.code) != 'undefined' && ex.code == 8); 110 success = (typeof(ex.code) != 'undefined' && ex.code == 8);
111 } 111 }
112 assertTrue("throw_NOT_FOUND_ERR",success); 112 assertTrue("throw_NOT_FOUND_ERR",success);
113 } 113 }
114 114
115 } 115 }
116 116
117 117
118 118
119 119
120 function runTest() { 120 function runTest() {
121 nodereplacechild36(); 121 nodereplacechild36();
122 } 122 }
OLDNEW
« no previous file with comments | « LayoutTests/dom/xhtml/level3/core/nodereplacechild35.js ('k') | LayoutTests/dom/xhtml/level3/core/nodereplacechild37.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698