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) { ...@@ -894,7 +894,12 @@ Tester.prototype.done = function done(planned) {
894 */ 894 */
895 Tester.prototype.dubious = function dubious(planned, executed, suite) { 895 Tester.prototype.dubious = function dubious(planned, executed, suite) {
896 "use strict"; 896 "use strict";
897 this.casper.warn(f('%s: %d tests planned, %d tests executed', suite || 'global', planned, executed)); 897 var message = f('%s: %d tests planned, %d tests executed', suite || 'global', planned, executed);
898 this.casper.warn(message);
899 return this.assert(false, message, {
900 type: "dubious",
901 standard: message
902 });
898 }; 903 };
899 904
900 /** 905 /**
......