add PASS:
This commit is contained in:
parent
58e79ce9e7
commit
1a94774649
@ -123,7 +123,7 @@ void HeadlessSpecRunner::timerEvent(QTimerEvent *event)
|
|||||||
|
|
||||||
if (hasElement(".runner.passed")) {
|
if (hasElement(".runner.passed")) {
|
||||||
QWebElement desc = m_page.mainFrame()->findFirstElement(".description");
|
QWebElement desc = m_page.mainFrame()->findFirstElement(".description");
|
||||||
std::cout << "\033[0;32m" << qPrintable(desc.toPlainText()) << "\033[m" << std::endl;
|
std::cout << "\033[0;32m" << "PASS: " << qPrintable(desc.toPlainText()) << "\033[m" << std::endl;
|
||||||
QApplication::instance()->exit(0);
|
QApplication::instance()->exit(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user