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

Unified Diff: LayoutTests/fast/dom/DOMException/resources/XPathException.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/fast/dom/DOMException/resources/XPathException.js
diff --git a/LayoutTests/fast/dom/DOMException/resources/XPathException.js b/LayoutTests/fast/dom/DOMException/resources/XPathException.js
index 18b69c82ed13134557ba288020907ce0d41db07e..93eaac0a6a84ff9c9b117cb39b88dbe7c600eeca 100644
--- a/LayoutTests/fast/dom/DOMException/resources/XPathException.js
+++ b/LayoutTests/fast/dom/DOMException/resources/XPathException.js
@@ -1,4 +1,4 @@
-description("Tests the properties of the XPathException object.")
+description("Tests the properties of the exception thrown when using XPath.")
var e;
try {
@@ -11,11 +11,8 @@ try {
e = err;
}
-shouldBeEqualToString("e.toString()", "TYPE_ERR: The expression could not be converted to return the specified type.");
-shouldBeEqualToString("Object.prototype.toString.call(e)", "[object XPathException]");
-shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object XPathExceptionPrototype]");
-shouldBeEqualToString("e.constructor.toString()", "function XPathException() { [native code] }");
-shouldBe("e.constructor", "window.XPathException");
-shouldBe("e.TYPE_ERR", "e.constructor.TYPE_ERR");
-shouldBe("e.INVALID_EXPRESSION_ERR", "51");
-shouldBe("e.TYPE_ERR", "52");
+shouldBeEqualToString("e.toString()", "TypeError: Type error");
+shouldBeEqualToString("Object.prototype.toString.call(e)", "[object Error]");
+shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object Error]");
+shouldBeEqualToString("e.constructor.toString()", "function TypeError() { [native code] }");
+shouldBe("e.constructor", "window.TypeError");

Powered by Google App Engine
This is Rietveld 408576698