From fd383be5acc490ecbc6e5e306012de8a61f105ec Mon Sep 17 00:00:00 2001 From: hysios hu Date: Sun, 23 Sep 2012 16:54:25 +0800 Subject: [PATCH] print outoutFile Name --- ext/jasmine-webkit-specrunner/Runner.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/jasmine-webkit-specrunner/Runner.cpp b/ext/jasmine-webkit-specrunner/Runner.cpp index b7414d0..7c3d77d 100644 --- a/ext/jasmine-webkit-specrunner/Runner.cpp +++ b/ext/jasmine-webkit-specrunner/Runner.cpp @@ -154,8 +154,10 @@ 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()) << std::endl; + while (!outputFiles.isEmpty()){ + QFile *outputFile = outputFiles.dequeue(); + std::cout << qPrintable(outputFile->fileName()) << std::endl; + } ts << qPrintable(content); ts.flush(); }