From 453271ad333fe2a8992d779da91d6c4490b7f7eb Mon Sep 17 00:00:00 2001 From: hysios hu Date: Sun, 23 Sep 2012 11:07:43 +0800 Subject: [PATCH] add Print debug log --- ext/jasmine-webkit-specrunner/Runner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/jasmine-webkit-specrunner/Runner.cpp b/ext/jasmine-webkit-specrunner/Runner.cpp index 52f410e..2c63ea5 100644 --- a/ext/jasmine-webkit-specrunner/Runner.cpp +++ b/ext/jasmine-webkit-specrunner/Runner.cpp @@ -154,6 +154,8 @@ void Runner::print(const QString &fh, const QString &content) { int index = (int)fh.split(":").last().toUInt(); QTextStream ts(outputFiles.at(index)); + while (!outputFiles.isEmpty()) + std::cout << qPrintable(outputFiles.dequeue()) << endl; ts << qPrintable(content); ts.flush(); }