Lines Matching refs:_a

28 function areArraysEqual(_a, _b)
30 if (Object.prototype.toString.call(_a) != Object.prototype.toString.call([]))
32 if (_a.length !== _b.length)
34 for (var i = 0; i < _a.length; i++)
35 if (_a[i] !== _b[i])
67 function shouldBe(_a, _b)
69 if (typeof _a != "string" || typeof _b != "string")
74 _av = eval(_a);
81 testFailed(_a + " should be " + _bv + ". Threw exception " + exception);
83 testPassed(_a + " is " + _b);
85 testFailed(_a + " should be " + _bv + ". Was " + stringify(_av) + ".");
87 testFailed(_a + " should be " + _bv + " (of type " + typeof _bv + "). Was " + _av + " (of type " + typeof _av + ").");
90 function shouldBeTrue(_a) { shouldBe(_a, "true"); }
91 function shouldBeFalse(_a) { shouldBe(_a, "false"); }
92 function shouldBeNaN(_a) { shouldBe(_a, "NaN"); }
93 function shouldBeNull(_a) { shouldBe(_a, "null"); }
101 function shouldBeUndefined(_a)
106 _av = eval(_a);
112 testFailed(_a + " should be undefined. Threw exception " + exception);
114 testPassed(_a + " is undefined.");
116 testFailed(_a + " should be undefined. Was " + _av);
120 function shouldThrow(_a, _e)
125 _av = eval(_a);
136 testPassed(_a + " threw exception " + exception + ".");
138 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Threw exception " + exception + ".");
140 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was undefined.");
142 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was " + _av + ".");