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

Side by Side Diff: LayoutTests/dom/xhtml/level3/core/wellformed04.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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 var nullNS = null; 98 var nullNS = null;
99 99
100 domImpl = getImplementation(); 100 domImpl = getImplementation();
101 doc = domImpl.createDocument("http://www.w3.org/1999/xhtml","html",nullDoctype); 101 doc = domImpl.createDocument("http://www.w3.org/1999/xhtml","html",nullDoctype);
102 docElem = doc.documentElement; 102 docElem = doc.documentElement;
103 103
104 104
105 { 105 {
106 success = false; 106 success = false;
107 try { 107 try {
108 attr = doc.createAttribute("LegalNameࢎ"); 108 attr = doc.createAttributeNS(nullNS,"LegalNameࢎ");
109 } 109 }
110 catch(ex) { 110 catch(ex) {
111 success = (typeof(ex.code) != 'undefined' && ex.code == 5); 111 success = (typeof(ex.code) != 'undefined' && ex.code == 5);
112 } 112 }
113 assertTrue("xml10InvalidName",success); 113 assertTrue("xml10InvalidName",success);
114 } 114 }
115 115
116 try { 116 try {
117 doc.xmlVersion = "1.1"; 117 doc.xmlVersion = "1.1";
118 118
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 } 154 }
155 155
156 156
157 157
158 158
159 function runTest() { 159 function runTest() {
160 wellformed04(); 160 wellformed04();
161 } 161 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698