Lines Matching refs:exception
104 var exception;
109 exception = e;
113 if (exception)
114 testFailed(_a + " should be " + _bv + ". Threw exception " + exception);
138 var exception;
143 exception = e;
146 if (exception)
147 testFailed(_a + " should be undefined. Threw exception " + exception);
157 var exception;
162 exception = e;
169 if (exception) {
170 if (typeof _e == "undefined" || exception == _ev)
171 testPassed(_a + " threw exception " + exception + ".");
173 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Threw exception " + exception + ".");
175 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was undefined.");
177 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was " + stringify(_av) + ".");
185 testPassed(_a + " did not throw exception.");
187 testFailed(_a + " should not throw exception. Threw exception " + e + ".");