summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/offscreen/tst_offscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/offscreen/tst_offscreen.cpp')
-rw-r--r--tests/auto/widgets/offscreen/tst_offscreen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/widgets/offscreen/tst_offscreen.cpp b/tests/auto/widgets/offscreen/tst_offscreen.cpp
index 98cbe55fe..7573b0537 100644
--- a/tests/auto/widgets/offscreen/tst_offscreen.cpp
+++ b/tests/auto/widgets/offscreen/tst_offscreen.cpp
@@ -49,10 +49,11 @@ void tst_OffScreen::offscreen()
QWebEngineView view;
QSignalSpy loadFinishedSpy(&page, SIGNAL(loadFinished(bool)));
view.setPage(&page);
- page.load(QUrl("http://qt.io"));
+ page.load(QUrl("qrc:/test.html"));
view.show();
QTRY_COMPARE(view.isVisible(), true);
QTRY_COMPARE_WITH_TIMEOUT(loadFinishedSpy.count() > 0, true, 20000);
+ QCOMPARE(loadFinishedSpy.takeFirst().at(0).toBool(), true);
}
#include "tst_offscreen.moc"