don't bother with tests if there are javascript errors

This commit is contained in:
John Bintz 2011-04-12 07:32:04 -04:00
parent 39a1132293
commit a313b9bdfd

View File

@ -153,6 +153,7 @@ void HeadlessSpecRunner::timerEvent(QTimerEvent *event)
if (hasErrors && m_runs > 2)
QApplication::instance()->exit(1);
if (!hasErrors) {
if (!hasElement(".jasmine_reporter") && !hasElement(".runner.running"))
return;
@ -177,6 +178,7 @@ void HeadlessSpecRunner::timerEvent(QTimerEvent *event)
QApplication::instance()->exit(1);
}
}
}
#include "specrunner.moc"