From f96b931285ff8ab5e76efc343493d831a8d08738 Mon Sep 17 00:00:00 2001 From: hysios hu Date: Sun, 23 Sep 2012 17:27:03 +0800 Subject: [PATCH] Runner::print --- ext/jasmine-webkit-specrunner/Runner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/jasmine-webkit-specrunner/Runner.cpp b/ext/jasmine-webkit-specrunner/Runner.cpp index 655a95c..4eb083f 100644 --- a/ext/jasmine-webkit-specrunner/Runner.cpp +++ b/ext/jasmine-webkit-specrunner/Runner.cpp @@ -140,6 +140,7 @@ bool Runner::isQuiet() { } void Runner::print(const QString &fh, const QString &content) { + std::cout << qPrintable("Runner::report"); if (fh == "stdout") { std::cout << qPrintable(content); std::cout.flush(); @@ -152,7 +153,7 @@ void Runner::print(const QString &fh, const QString &content) { if (fh.contains("report")) { int index = (int)fh.split(":").last().toUInt(); - std::cout << qPrintable("report"); + QTextStream ts(outputFiles.at(index)); while (!outputFiles.isEmpty()){ QFile *outputFile = outputFiles.dequeue();