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

Side by Side Diff: LayoutTests/dom/xhtml/level2/core/hc_namednodemapinvalidtype1.js

Issue 755213002: Let NamedNodeMap take and return Attr instead of Node (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 attributes = docElem.attributes; 102 attributes = docElem.attributes;
103 103
104 newElem = doc.createElement("html"); 104 newElem = doc.createElement("html");
105 105
106 { 106 {
107 success = false; 107 success = false;
108 try { 108 try {
109 retval = attributes.setNamedItem(newElem); 109 retval = attributes.setNamedItem(newElem);
110 } 110 }
111 catch(ex) { 111 catch(ex) {
112 success = (typeof(ex.code) != 'undefined' && ex.code == 3); 112 success = ex.name == 'TypeError';
113 } 113 }
114 » » assertTrue("throw_HIERARCHY_REQUEST_ERR",success); 114 » » assertTrue("throw_TYPE_ERR",success);
Mike West 2014/11/25 14:04:01 Tabs? :(
philipj_slow 2014/11/25 14:46:53 Yeah, these crufty old tests are a crazy mix of ta
115 } 115 }
116 116
117 } 117 }
118 118
119 119
120 120
121 121
122 function runTest() { 122 function runTest() {
123 hc_namednodemapinvalidtype1(); 123 hc_namednodemapinvalidtype1();
124 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698