From 630162d3778657826efdf75560f9c37dd83a9043 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 12 Feb 2018 22:44:37 +0100 Subject: [PATCH] WebViewTest: Fix qrc urls --- autotests/webviewtest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/webviewtest.cpp b/autotests/webviewtest.cpp index 1e9380def..7bb5ce725 100644 --- a/autotests/webviewtest.cpp +++ b/autotests/webviewtest.cpp @@ -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));