summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/xpath/substring-after-expected.txt
blob: 83815586a4c84ada615a94940d5e6dc61d867b79 (plain)
1
2
3
4
5
6
7
8
9
10
11
Test for bug 15437: XPath substring-after function is broken.

PASS document.evaluate("substring-after('abcde', 'd')", document, null, XPathResult.STRING_TYPE, null).stringValue is 'e'
PASS document.evaluate("substring-after('abcde', 'f')", document, null, XPathResult.STRING_TYPE, null).stringValue is ''
PASS document.evaluate("substring-after('abcde', '')", document, null, XPathResult.STRING_TYPE, null).stringValue is 'abcde'
PASS document.evaluate("substring-after('1999/04/01', '/')", document, null, XPathResult.STRING_TYPE, null).stringValue is '04/01'
PASS document.evaluate("substring-after('1999/04/01', '19')", document, null, XPathResult.STRING_TYPE, null).stringValue is '99/04/01'
PASS successfullyParsed is true

TEST COMPLETE