Lines Matching refs:_a
28 function areArraysEqual(_a, _b) argument
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) argument
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 " +…
90 function shouldBeTrue(_a) { shouldBe(_a, "true"); } argument
91 function shouldBeFalse(_a) { shouldBe(_a, "false"); } argument
92 function shouldBeNaN(_a) { shouldBe(_a, "NaN"); } argument
93 function shouldBeNull(_a) { shouldBe(_a, "null"); } argument
101 function shouldBeUndefined(_a) argument
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) argument
125 _av = eval(_a);
136 testPassed(_a + " threw exception " + exception + ".");
138 …testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Threw ex…
140 …testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was unde…
142 …testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was " + …