Lines Matching refs:expr
17 function test(doc, context, expr, expected, nsResolver)
23 var result = doc.evaluate(expr, context, nsResolver, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
24 checkSnapshot(expr, result, expected);
26 var result = doc.evaluate(expr, context, nsResolver, XPathResult.ANY_TYPE, null);
29 testPassed(expr);
31 testFailed(expr + ": expected " + expected + ", actual " + result.numberValue);
34 testPassed(expr);
36 testFailed(expr + ": expected '" + expected + "', actual '" + result.stringValue + "'");
39 testPassed(expr);
41 testFailed(expr + ": expected '" + expected + "', actual '" + result.booleanValue + "'");
45 testFailed(expr + ": raised " + ex);