Commit 103d5cd3 authored by Romain Courteaud's avatar Romain Courteaud

Increase verbosity in case of test errors.

parent 2d73dbdb
......@@ -986,6 +986,9 @@
.then(function (result) {
equal(result, "foo");
})
.fail(function (e) {
ok(false, e);
})
.always(function () {
start();
});
......@@ -1175,7 +1178,8 @@
ok(false, "getElement should fail");
})
.fail(function (e) {
ok(e instanceof Error);
ok(e instanceof Error, e);
equal(e.message, "No element defined");
})
.always(function () {
start();
......@@ -3032,8 +3036,8 @@
.then(function () {
ok(getTopURLCalled);
})
.fail(function () {
ok(false);
.fail(function (e) {
ok(false, e);
});
});
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment