Commit 2b953bf8 authored by Alexandru Croitor's avatar Alexandru Croitor
Browse files

Fix flaky tst_QQuickWebEngineView::loadProgress test


Change-Id: I102bda62bfaa16a8c9ff4c4929e6b5a055de3e25
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
Showing with 2 additions and 3 deletions
...@@ -238,9 +238,8 @@ void tst_QQuickWebEngineView::loadProgress() ...@@ -238,9 +238,8 @@ void tst_QQuickWebEngineView::loadProgress()
QSignalSpy loadProgressChangedSpy(webEngineView(), SIGNAL(loadProgressChanged())); QSignalSpy loadProgressChangedSpy(webEngineView(), SIGNAL(loadProgressChanged()));
QVERIFY(waitForLoadSucceeded(webEngineView())); QVERIFY(waitForLoadSucceeded(webEngineView()));
QVERIFY(loadProgressChangedSpy.count() >= 1); loadProgressChangedSpy.wait();
QTRY_COMPARE(webEngineView()->loadProgress(), 100);
QCOMPARE(webEngineView()->loadProgress(), 100);
} }
void tst_QQuickWebEngineView::show() void tst_QQuickWebEngineView::show()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment