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

Unified Diff: LayoutTests/fast/xpath/invalid-resolver-expected.txt

Issue 111533002: Have document.evaluate() report TypeError over incorrect resolvers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: The detail argument is no longer optional. Created 7 years 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
« no previous file with comments | « LayoutTests/fast/xpath/invalid-resolver.html ('k') | Source/bindings/v8/ExceptionMessages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/xpath/invalid-resolver-expected.txt
diff --git a/LayoutTests/fast/xpath/invalid-resolver-expected.txt b/LayoutTests/fast/xpath/invalid-resolver-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8928d692c9966d4d0512d394664a59a14bbd9e90
--- /dev/null
+++ b/LayoutTests/fast/xpath/invalid-resolver-expected.txt
@@ -0,0 +1,7 @@
+PASS document.evaluate('/body', document, 5, 0, null) threw exception TypeError: Failed to execute 'evaluate' on 'Document': The 3rd argument is not a resolver function..
+PASS document.evaluate('/body', document, 'a resolver', 0, null) threw exception TypeError: Failed to execute 'evaluate' on 'Document': The 3rd argument is not a resolver function..
+PASS document.evaluate('/body', document, Date, 0, null).toString() is "[object XPathResult]"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/xpath/invalid-resolver.html ('k') | Source/bindings/v8/ExceptionMessages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698