Skip to content

Commit

Permalink
fixed: specrunner shouldn't try to open error page in a browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dipspb committed Jun 20, 2011
1 parent 93ea7c6 commit 4e951c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specrunner/specrunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ void HeadlessSpecRunner::timerEvent(QTimerEvent *event)
std::cout << "FAIL: " << qPrintable(desc.toPlainText()) << std::endl;
m_page.mainFrame()->addToJavaScriptWindowObject("debug", this);
m_page.mainFrame()->evaluateJavaScript(DUMP_MSG);
QDesktopServices::openUrl(m_page.mainFrame()->url());
// It's improper way to handle the error in headless environment
//QDesktopServices::openUrl(m_page.mainFrame()->url());
QApplication::instance()->exit(1);
return;
}
Expand Down

0 comments on commit 4e951c7

Please sign in to comment.