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

Side by Side Diff: LayoutTests/dom/xhtml/level3/core/documentrenamenode21.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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 doc = load(docRef, "doc", "hc_staff"); 104 doc = load(docRef, "doc", "hc_staff");
105 docElem = doc.documentElement; 105 docElem = doc.documentElement;
106 106
107 rootNS = docElem.namespaceURI; 107 rootNS = docElem.namespaceURI;
108 108
109 rootName = docElem.tagName; 109 rootName = docElem.tagName;
110 110
111 domImpl = doc.implementation; 111 domImpl = doc.implementation;
112 newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); 112 newDoc = domImpl.createDocument(rootNS,rootName,nullDocType);
113 attr = newDoc.createAttribute("xml:lang"); 113 attr = newDoc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xm l:lang");
114 114
115 { 115 {
116 success = false; 116 success = false;
117 try { 117 try {
118 renamedNode = newDoc.renameNode(attr,"http://www.w3.org/2000/XMLNS/" ,"xmlns:xml"); 118 renamedNode = newDoc.renameNode(attr,"http://www.w3.org/2000/XMLNS/" ,"xmlns:xml");
119 } 119 }
120 catch(ex) { 120 catch(ex) {
121 success = (typeof(ex.code) != 'undefined' && ex.code == 14); 121 success = (typeof(ex.code) != 'undefined' && ex.code == 14);
122 } 122 }
123 assertTrue("throw_NAMESPACE_ERR",success); 123 assertTrue("throw_NAMESPACE_ERR",success);
124 } 124 }
125 125
126 } 126 }
127 127
128 128
129 129
130 130
131 function runTest() { 131 function runTest() {
132 documentrenamenode21(); 132 documentrenamenode21();
133 } 133 }
OLDNEW
« no previous file with comments | « LayoutTests/dom/xhtml/level3/core/documentadoptnode06.js ('k') | LayoutTests/dom/xhtml/level3/core/documentrenamenode22.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698