Commit cd44ddab cd44ddab67596c2282ef25631ebe2174151fbb2d by Nicolas Perriault

dubious tests now raise an AssertionError

1 parent 067b6dcf
......@@ -894,7 +894,12 @@ Tester.prototype.done = function done(planned) {
*/
Tester.prototype.dubious = function dubious(planned, executed, suite) {
"use strict";
this.casper.warn(f('%s: %d tests planned, %d tests executed', suite || 'global', planned, executed));
var message = f('%s: %d tests planned, %d tests executed', suite || 'global', planned, executed);
this.casper.warn(message);
return this.assert(false, message, {
type: "dubious",
standard: message
});
};
/**
......