add a message about form submits

This commit is contained in:
John Bintz 2011-05-06 07:20:18 -04:00
parent 2beb332bf1
commit 128c645d17

View File

@ -112,7 +112,9 @@ void HeadlessSpecRunner::load(const QString &spec)
void HeadlessSpecRunner::watch(bool ok) void HeadlessSpecRunner::watch(bool ok)
{ {
if (!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); QApplication::instance()->exit(1);
return; return;
} }