Home | History | Annotate | Download | only in resources

Lines Matching refs:_a

38 function areArraysEqual(_a, _b)
40 if (_a.length !== _b.length)
42 for (var i = 0; i < _a.length; i++)
43 if (_a[i] !== _b[i])
75 function evalAndLog(_a)
77 if (typeof _a != "string")
81 debug(_a);
85 _av = eval(_a);
87 testFailed(_a + " threw exception " + e);
91 function shouldBe(_a, _b)
93 if (typeof _a != "string" || typeof _b != "string")
98 _av = eval(_a);
105 testFailed(_a + " should be " + _bv + ". Threw exception " + exception);
107 testPassed(_a + " is " + _b);
109 testFailed(_a + " should be " + _bv + ". Was " + stringify(_av) + ".");
111 testFailed(_a + " should be " + _bv + " (of type " + typeof _bv + "). Was " + _av + " (of type " + typeof _av + ").");
114 function shouldBeTrue(_a) { shouldBe(_a, "true"); }
115 function shouldBeFalse(_a) { shouldBe(_a, "false"); }
116 function shouldBeNaN(_a) { shouldBe(_a, "NaN"); }
117 function shouldBeNull(_a) { shouldBe(_a, "null"); }
162 function shouldBeNonZero(_a)
167 _av = eval(_a);
173 testFailed(_a + " should be non-zero. Threw exception " + exception);
175 testPassed(_a + " is non-zero.");
177 testFailed(_a + " should be non-zero. Was " + _av);
180 function shouldBeNonNull(_a)
185 _av = eval(_a);
191 testFailed(_a + " should be non-null. Threw exception " + exception);
193 testPassed(_a + " is non-null.");
195 testFailed(_a + " should be non-null. Was " + _av);
198 function shouldBeUndefined(_a)
203 _av = eval(_a);
209 testFailed(_a + " should be undefined. Threw exception " + exception);
211 testPassed(_a + " is undefined.");
213 testFailed(_a + " should be undefined. Was " + _av);
217 function shouldThrow(_a, _e)
222 _av = eval(_a);
233 testPassed(_a + " threw exception " + exception + ".");
235 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Threw exception " + exception + ".");
237 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was undefined.");
239 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was " + _av + ".");