From 4f8a49e47c8e5e98d1bd7fbde88e32ddd46a4495 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 20 Sep 2011 16:09:32 -0400 Subject: [PATCH] better printing of matching matcher lines --- ext/jasmine-webkit-specrunner/ConsoleOutput.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/jasmine-webkit-specrunner/ConsoleOutput.cpp b/ext/jasmine-webkit-specrunner/ConsoleOutput.cpp index 2093d99..c686599 100644 --- a/ext/jasmine-webkit-specrunner/ConsoleOutput.cpp +++ b/ext/jasmine-webkit-specrunner/ConsoleOutput.cpp @@ -87,8 +87,10 @@ void ConsoleOutput::logSpecResult(const QString &result) { red(); while (linesIterator.hasNext()) { - *outputIO << " " << qPrintable(linesIterator.next()) << std::endl; - yellow(); + QString line = linesIterator.next(); + if (!linesIterator.hasNext()) + yellow(); + *outputIO << " " << qPrintable(line) << std::endl; } clear();