blob: 83815586a4c84ada615a94940d5e6dc61d867b79 [file] [log] [blame]
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