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

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

Issue 983123003: Add [TypeChecking=Interface] to XPath interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: revert test change; no longer needed Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="console"></div> 7 <div id="console"></div>
8 8
9 <script> 9 <script>
10 shouldThrow("document.evaluate('/body', document, 5, 0, null)", '"TypeError: Failed to execute \'evaluate\' on \'Document\': The 3rd argument provided is ei ther null, or an invalid XPathNSResolver object."'); 10 shouldThrow("document.evaluate('/body', document, 5, 0, null)");
11 shouldThrow("document.evaluate('/body', document, 'a resolver', 0, null)", ' "TypeError: Failed to execute \'evaluate\' on \'Document\': The 3rd argument pro vided is either null, or an invalid XPathNSResolver object."'); 11 shouldThrow("document.evaluate('/body', document, 'a resolver', 0, null)");
12 shouldBe("document.evaluate('/body', document, Date, 0, null).toString()", ' "[object XPathResult]"'); 12 shouldBe("document.evaluate('/body', document, Date, 0, null).toString()", ' "[object XPathResult]"');
13 </script> 13 </script>
14 </body> 14 </body>
15 </html> 15 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/xpath/evaluator-exceptions-expected.txt ('k') | LayoutTests/fast/xpath/invalid-resolver-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698