1 PASS document.createExpression("foobar()", null) threw exception SyntaxError: Failed to execute 'createExpression' on 'Document': The string 'foobar()' is not a valid XPath expression..
2 PASS document.evaluate("foobar()", document, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string 'foobar()' is not a valid XPath expression..
3 PASS document.createExpression("position(//div)", null) threw exception SyntaxError: Failed to execute 'createExpression' on 'Document': The string 'position(//div)' is not a valid XPath expression..
4 PASS document.evaluate("position(//div)", document, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string 'position(//div)' is not a valid XPath expression..
5 PASS document.createExpression("ceiling(1,2)", null) threw exception SyntaxError: Failed to execute 'createExpression' on 'Document': The string 'ceiling(1,2)' is not a valid XPath expression..
6 PASS document.evaluate("ceiling(1,2)", document, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string 'ceiling(1,2)' is not a valid XPath expression..
7 PASS document.createExpression("ceiling(1,2)", null).evaluate(document, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'createExpression' on 'Document': The string 'ceiling(1,2)' is not a valid XPath expression..
8 PASS document.createExpression("boolean()", null) threw exception SyntaxError: Failed to execute 'createExpression' on 'Document': The string 'boolean()' is not a valid XPath expression..
9 PASS document.evaluate("boolean()", document, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: Failed to execute 'evaluate' on 'Document': The string 'boolean()' is not a valid XPath expression..
10 PASS successfullyParsed is true