| 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");
|
|
|