Improve error message when a spec doesn't call the async callback within the default time interval

This commit is contained in:
Sheel Choksi
2013-10-19 21:18:06 -07:00
parent 81299860aa
commit fdb7df812c

View File

@@ -56,7 +56,7 @@ getJasmineRequireObj().Spec = function(j$) {
function timeoutable(fn) {
return function(done) {
var timeout = Function.prototype.apply.apply(self.timer.setTimeout, [j$.getGlobal(), [function() {
onException(new Error('timeout'));
onException(new Error('Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.'));
done();
}, j$.DEFAULT_TIMEOUT_INTERVAL]]);