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

Unified Diff: LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_TYPE_ERR.js

Issue 17239008: Remove XPathException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months 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/svg/level3/xpath/XPathEvaluator_evaluate_TYPE_ERR.js
diff --git a/LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_TYPE_ERR.js b/LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_TYPE_ERR.js
index 731632b4c0b7e2a0dc19d8d15faded5b079183ae..40500244419bc960466fd0ed03acc7e4ac51aad1 100644
--- a/LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_TYPE_ERR.js
+++ b/LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_TYPE_ERR.js
@@ -103,7 +103,7 @@ function XPathEvaluator_evaluate_TYPE_ERR() {
result = xpEvaluator.evaluate("string(/)",doc,nullNSResolver,9,nullResult);
}
catch(ex) {
- success = (typeof(ex.code) != 'undefined' && ex.code == 52);
+ success = ex.name == 'TypeError';
}
assertTrue("throw_TYPE_ERR",success);
}

Powered by Google App Engine
This is Rietveld 408576698