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

Unified Diff: LayoutTests/dom/html/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, 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/dom/html/level2/core/hc_namednodemapinvalidtype1.js
diff --git a/LayoutTests/dom/html/level2/core/hc_namednodemapinvalidtype1.js b/LayoutTests/dom/html/level2/core/hc_namednodemapinvalidtype1.js
index 0cffa0e185bed79bc8a7061c33008cf1406988f3..ec4db837a6730ea252d395a9ea3875fd2ecb3701 100644
--- a/LayoutTests/dom/html/level2/core/hc_namednodemapinvalidtype1.js
+++ b/LayoutTests/dom/html/level2/core/hc_namednodemapinvalidtype1.js
@@ -109,9 +109,9 @@ function hc_namednodemapinvalidtype1() {
retval = attributes.setNamedItem(newElem);
}
catch(ex) {
- success = (typeof(ex.code) != 'undefined' && ex.code == 3);
+ success = ex.name == 'TypeError';
}
- assertTrue("throw_HIERARCHY_REQUEST_ERR",success);
+ assertTrue("throw_TYPE_ERR",success);
}
}

Powered by Google App Engine
This is Rietveld 408576698