summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
index b03418aea..bef77d3f1 100644
--- a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
+++ b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
@@ -3025,7 +3025,13 @@ void tst_QWebEnginePage::progressSignal()
int previousValue = -1;
for (QSignalSpy::ConstIterator it = progressSpy.begin(); it < progressSpy.end(); ++it) {
int current = (*it).first().toInt();
- QVERIFY(current >= previousValue);
+ // verbose output for faulty condition
+ if (!(current >= previousValue)) {
+ qDebug() << "faulty progress values:";
+ for (QSignalSpy::ConstIterator it2 = progressSpy.begin(); it2 < progressSpy.end(); ++it2)
+ qDebug() << (*it2).first().toInt();
+ QVERIFY(current >= previousValue);
+ }
previousValue = current;
}