Lines Matching refs:_a
30 function runTest(_a, errorType) argument
33 if (typeof _a != "string")
34 testFailed("runTest expects string argument: " + _a);
36 eval(_a);
43 testPassed('Invalid: "' + _a + '"');
45 testPassed('Valid: "' + _a + '"');
48 testFailed('Invalid: "' + _a + '" should throw ' + errorType.name);
50 testFailed('Valid: "' + _a + '" should NOT throw ');
54 function valid(_a) argument
57 runTest(_a, false);
58 runTest("function f() { " + _a + " }", false);
61 function invalid(_a, _type) argument
65 runTest(_a, true);
66 runTest("function f() { " + _a + " }", true);