Commit a8d6b513 a8d6b513c985086600d1a86a235762b5d63609e0 by Nicolas Perriault

dubious assert results now have a dedicated style

1 parent b41fb432
...@@ -952,7 +952,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result ...@@ -952,7 +952,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result
952 file: this.currentTestFile 952 file: this.currentTestFile
953 }); 953 });
954 } 954 }
955 var eventName= 'success', 955 var eventName = 'success',
956 message = result.message || result.standard, 956 message = result.message || result.standard,
957 style = 'INFO', 957 style = 'INFO',
958 status = this.options.passText; 958 status = this.options.passText;
...@@ -961,6 +961,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result ...@@ -961,6 +961,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result
961 style = 'RED_BAR'; 961 style = 'RED_BAR';
962 status = this.options.failText; 962 status = this.options.failText;
963 } 963 }
964 style = result.type === "dubious" ? "WARN_BAR" : style;
964 this.casper.echo([this.colorize(status, style), this.formatMessage(message)].join(' ')); 965 this.casper.echo([this.colorize(status, style), this.formatMessage(message)].join(' '));
965 this.emit(eventName, result); 966 this.emit(eventName, result);
966 if (this.options.failFast && !result.success) { 967 if (this.options.failFast && !result.success) {
......