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

Unified Diff: LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_INVALID_EXPRESSION_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_INVALID_EXPRESSION_ERR.js
diff --git a/LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_INVALID_EXPRESSION_ERR.js b/LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_INVALID_EXPRESSION_ERR.js
index 8ffb909b959d60531cf1a268eea8c1f08b2ac171..27b2ee724e2c296ac5ef898856219ec6e62c2fd2 100644
--- a/LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_INVALID_EXPRESSION_ERR.js
+++ b/LayoutTests/dom/svg/level3/xpath/XPathEvaluator_evaluate_INVALID_EXPRESSION_ERR.js
@@ -105,7 +105,7 @@ root = doc.documentElement;
result = xpEvaluator.evaluate("12a",root,nullNSResolver,0,nullResult);
}
catch(ex) {
- success = (typeof(ex.code) != 'undefined' && ex.code == 51);
+ success = ex.name == 'SyntaxError';
}
assertTrue("throw_INVALID_EXPRESSION_ERR",success);
}

Powered by Google App Engine
This is Rietveld 408576698