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

Increase verbosity in case of test errors.

parent 2d73dbdb
...@@ -986,6 +986,9 @@ ...@@ -986,6 +986,9 @@
.then(function (result) { .then(function (result) {
equal(result, "foo"); equal(result, "foo");
}) })
.fail(function (e) {
ok(false, e);
})
.always(function () { .always(function () {
start(); start();
}); });
...@@ -1175,7 +1178,8 @@ ...@@ -1175,7 +1178,8 @@
ok(false, "getElement should fail"); ok(false, "getElement should fail");
}) })
.fail(function (e) { .fail(function (e) {
ok(e instanceof Error); ok(e instanceof Error, e);
equal(e.message, "No element defined");
}) })
.always(function () { .always(function () {
start(); start();
...@@ -3032,8 +3036,8 @@ ...@@ -3032,8 +3036,8 @@
.then(function () { .then(function () {
ok(getTopURLCalled); ok(getTopURLCalled);
}) })
.fail(function () { .fail(function (e) {
ok(false); 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