1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 2<html> 3<head> 4<link rel="stylesheet" href="/js/resources/js-test-style.css"> 5<script src="/js/resources/js-test-pre.js"></script> 6</head> 7<body> 8<div id="console"></div> 9 10<script> 11 shouldThrow('document.createExpression("foobar()", null)'); 12 shouldThrow('document.evaluate("foobar()", document, null, XPathResult.ANY_TYPE, null)'); 13 14 shouldThrow('document.createExpression("position(//div)", null)'); 15 shouldThrow('document.evaluate("position(//div)", document, null, XPathResult.ANY_TYPE, null)'); 16 17 shouldThrow('document.createExpression("ceiling(1,2)", null)'); 18 shouldThrow('document.evaluate("ceiling(1,2)", document, null, XPathResult.ANY_TYPE, null)'); 19 shouldThrow('document.createExpression("ceiling(1,2)", null).evaluate(document, XPathResult.ANY_TYPE, null)'); 20 21 shouldThrow('document.createExpression("boolean()", null)'); 22 shouldThrow('document.evaluate("boolean()", document, null, XPathResult.ANY_TYPE, null)'); 23 24 var successfullyParsed = true; 25 26</script> 27<script src="/js/resources/js-test-post.js"></script> 28</body> 29</html> 30