Permalink
Browse files

better printing of matching matcher lines

  • Loading branch information...
1 parent 262b7a8 commit 4f8a49e47c8e5e98d1bd7fbde88e32ddd46a4495 @johnbintz committed Sep 20, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 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();

0 comments on commit 4f8a49e

Please sign in to comment.