| Index: LayoutTests/fast/xpath/invalid-resolver.html
|
| diff --git a/LayoutTests/fast/xpath/invalid-resolver.html b/LayoutTests/fast/xpath/invalid-resolver.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..962f4349a350b3adb03e7ed085021a973a819f17
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/xpath/invalid-resolver.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<div id="console"></div>
|
| +
|
| +<script>
|
| + shouldThrow("document.evaluate('/body', document, 5, 0, null)", '"TypeError: Failed to execute \'evaluate\' on \'Document\': The 3rd argument is not a resolver function."');
|
| + shouldThrow("document.evaluate('/body', document, 'a resolver', 0, null)", '"TypeError: Failed to execute \'evaluate\' on \'Document\': The 3rd argument is not a resolver function."');
|
| + shouldBe("document.evaluate('/body', document, Date, 0, null).toString()", '"[object XPathResult]"');
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|