| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 Copyright © 2001-2004 World Wide Web Consortium, | 3 Copyright © 2001-2004 World Wide Web Consortium, |
| 4 (Massachusetts Institute of Technology, European Research Consortium | 4 (Massachusetts Institute of Technology, European Research Consortium |
| 5 for Informatics and Mathematics, Keio University). All | 5 for Informatics and Mathematics, Keio University). All |
| 6 Rights Reserved. This work is distributed under the W3C® Software License [1] i
n the | 6 Rights Reserved. This work is distributed under the W3C® Software License [1] i
n the |
| 7 hope that it will be useful, but WITHOUT ANY WARRANTY; without even | 7 hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
| 8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 9 | 9 |
| 10 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 | 10 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 xpEvaluator = createXPathEvaluator(doc); | 98 xpEvaluator = createXPathEvaluator(doc); |
| 99 root = doc.documentElement; | 99 root = doc.documentElement; |
| 100 | 100 |
| 101 | 101 |
| 102 { | 102 { |
| 103 success = false; | 103 success = false; |
| 104 try { | 104 try { |
| 105 result = xpEvaluator.evaluate("12a",root,nullNSResolver,0,nullResult
); | 105 result = xpEvaluator.evaluate("12a",root,nullNSResolver,0,nullResult
); |
| 106 } | 106 } |
| 107 catch(ex) { | 107 catch(ex) { |
| 108 success = (typeof(ex.code) != 'undefined' && ex.code == 51); | 108 success = ex.name == 'SyntaxError'; |
| 109 } | 109 } |
| 110 assertTrue("throw_INVALID_EXPRESSION_ERR",success); | 110 assertTrue("throw_INVALID_EXPRESSION_ERR",success); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } | 113 } |
| 114 | 114 |
| 115 | 115 |
| 116 | 116 |
| 117 | 117 |
| 118 function runTest() { | 118 function runTest() { |
| 119 XPathEvaluator_evaluate_INVALID_EXPRESSION_ERR(); | 119 XPathEvaluator_evaluate_INVALID_EXPRESSION_ERR(); |
| 120 } | 120 } |
| OLD | NEW |