Lines Matching refs:_a
58 function areArraysEqual(_a, _b) argument
60 if (Object.prototype.toString.call(_a) != Object.prototype.toString.call([]))
62 if (_a.length !== _b.length)
64 for (var i = 0; i < _a.length; i++)
65 if (_a[i] !== _b[i])
100 function shouldBe(_a, _b) argument
102 if (typeof _a != "string" || typeof _b != "string")
107 _av = eval(_a);
114 testFailed(_a + " should be " + _bv + ". Threw exception " + exception);
116 testPassed(_a + " is " + _b);
118 testFailed(_a + " should be " + _bv + ". Was " + stringify(_av) + ".");
120 …testFailed(_a + " should be " + _bv + " (of type " + typeof _bv + "). Was " + stringify(_av) + " (…
123 function shouldBeTrue(_a) { shouldBe(_a, "true"); } argument
124 function shouldBeFalse(_a) { shouldBe(_a, "false"); } argument
125 function shouldBeNaN(_a) { shouldBe(_a, "NaN"); } argument
126 function shouldBeNull(_a) { shouldBe(_a, "null"); } argument
136 function shouldBeUndefined(_a) argument
141 _av = eval(_a);
147 testFailed(_a + " should be undefined. Threw exception " + exception);
149 testPassed(_a + " is undefined.");
151 testFailed(_a + " should be undefined. Was " + _av);
155 function shouldThrow(_a, _e) argument
160 _av = eval(_a);
171 testPassed(_a + " threw exception " + exception + ".");
173 …testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Threw ex…
175 …testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was unde…
177 …testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was " + …
181 function shouldNotThrow(_a) argument
184 eval(_a);
185 testPassed(_a + " did not throw exception.");
187 testFailed(_a + " should not throw exception. Threw exception " + e + ".");