ext/jasmine-webkit-specrunner/ConsoleOutput.cpp in jasmine-headless-webkit-0.7.1 vs ext/jasmine-webkit-specrunner/ConsoleOutput.cpp in jasmine-headless-webkit-0.7.2

- old
+ new

@@ -80,11 +80,20 @@ *outputIO << qPrintable(name) << std::endl; clear(); } void ConsoleOutput::logSpecResult(const QString &result) { + QStringList lines = result.split("\n"); + QStringListIterator linesIterator(lines); + red(); - *outputIO << " " << qPrintable(result) << std::endl; + while (linesIterator.hasNext()) { + QString line = linesIterator.next(); + if (!linesIterator.hasNext()) + yellow(); + *outputIO << " " << qPrintable(line) << std::endl; + } + clear(); } void ConsoleOutput::reportFailure(const QString &totalTests, const QString &failedTests, const QString &duration) { red();