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

Side by Side Diff: LayoutTests/fast/xpath/substring-after.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=15437">bug 15437</a> : 7 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=15437">bug 15437</a> :
8 XPath substring-after function is broken.</p> 8 XPath substring-after function is broken.</p>
9 <div id="console"></div> 9 <div id="console"></div>
10 10
11 <script> 11 <script>
12 shouldBe("document.evaluate(\"substring-after('abcde', 'd')\", document, nul l, XPathResult.STRING_TYPE, null).stringValue", "'e'"); 12 shouldBe("document.evaluate(\"substring-after('abcde', 'd')\", document, nul l, XPathResult.STRING_TYPE, null).stringValue", "'e'");
13 shouldBe("document.evaluate(\"substring-after('abcde', 'f')\", document, nul l, XPathResult.STRING_TYPE, null).stringValue", "''"); 13 shouldBe("document.evaluate(\"substring-after('abcde', 'f')\", document, nul l, XPathResult.STRING_TYPE, null).stringValue", "''");
14 shouldBe("document.evaluate(\"substring-after('abcde', '')\", document, null , XPathResult.STRING_TYPE, null).stringValue", "'abcde'"); 14 shouldBe("document.evaluate(\"substring-after('abcde', '')\", document, null , XPathResult.STRING_TYPE, null).stringValue", "'abcde'");
15 shouldBe("document.evaluate(\"substring-after('1999/04/01', '/')\", document , null, XPathResult.STRING_TYPE, null).stringValue", "'04/01'"); 15 shouldBe("document.evaluate(\"substring-after('1999/04/01', '/')\", document , null, XPathResult.STRING_TYPE, null).stringValue", "'04/01'");
16 shouldBe("document.evaluate(\"substring-after('1999/04/01', '19')\", documen t, null, XPathResult.STRING_TYPE, null).stringValue", "'99/04/01'"); 16 shouldBe("document.evaluate(\"substring-after('1999/04/01', '19')\", documen t, null, XPathResult.STRING_TYPE, null).stringValue", "'99/04/01'");
17 17
18 </script> 18 </script>
19 <script src="../js/resources/js-test-post.js"></script>
20 </body> 19 </body>
21 </html> 20 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/xpath/string-value.html ('k') | LayoutTests/fast/xpath/substring-nan-position.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698