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

Side by Side Diff: LayoutTests/fast/xpath/invalid-resolver.html

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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/xpath/invalid-resolver-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="console"></div>
8
9 <script>
10 shouldThrow("document.evaluate('/body', document, 5, 0, null)", '"TypeError: Failed to execute \'evaluate\' on \'Document\': The 3rd argument is not a resol ver function."');
11 shouldThrow("document.evaluate('/body', document, 'a resolver', 0, null)", ' "TypeError: Failed to execute \'evaluate\' on \'Document\': The 3rd argument is not a resolver function."');
12 shouldBe("document.evaluate('/body', document, Date, 0, null).toString()", ' "[object XPathResult]"');
13 </script>
14 </body>
15 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/xpath/invalid-resolver-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698