1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

WebViewTest: Fix qrc urls

This commit is contained in:
David Rosca 2018-02-12 22:44:37 +01:00
parent 1ef1455957
commit 630162d377
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -73,7 +73,7 @@ void WebViewTest::loadSignalsChangePageTest()
QSignalSpy loadStartedSpy(&view, &WebView::loadStarted);
QSignalSpy loadFinishedSpy(&view, &WebView::loadFinished);
view.load(QUrl(":autotests/data/basic_page.html"));
view.load(QUrl("qrc:autotests/data/basic_page.html"));
QTRY_COMPARE(loadStartedSpy.count(), 1);
loadStartedSpy.clear();
@ -93,7 +93,7 @@ void WebViewTest::loadSignalsChangePageTest()
view2.setPage(page3);
QSignalSpy page3LoadStart(page3, &WebPage::loadStarted);
page3->load(QUrl(":autotests/data/basic_page.html"));
page3->load(QUrl("qrc:autotests/data/basic_page.html"));
QVERIFY(page3LoadStart.wait());
view2.setPage(new QWebEnginePage(&view2));