From 128c645d174f14462cd02d522bbd9bf530bdda01 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 6 May 2011 07:20:18 -0400 Subject: [PATCH] add a message about form submits --- ext/jasmine-webkit-specrunner/specrunner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/jasmine-webkit-specrunner/specrunner.cpp b/ext/jasmine-webkit-specrunner/specrunner.cpp index a298b80..fb2307a 100644 --- a/ext/jasmine-webkit-specrunner/specrunner.cpp +++ b/ext/jasmine-webkit-specrunner/specrunner.cpp @@ -112,7 +112,9 @@ void HeadlessSpecRunner::load(const QString &spec) void HeadlessSpecRunner::watch(bool ok) { if (!ok) { - std::cerr << "Can't load' " << qPrintable(m_page.mainFrame()->url().toString()) << std::endl; + std::cerr << "Can't load " << qPrintable(m_page.mainFrame()->url().toString()) << ", the file may be broken." << std::endl; + std::cerr << "Out of curiosity, did your tests try to submit a form and you haven't prevented that?" << std::endl; + std::cerr << "Try running your tests in your browser with the Jasmine server and see what happens." << std::endl; QApplication::instance()->exit(1); return; }