Skip to content
Permalink
Browse files
fix build without QtWebKit
  • Loading branch information
vcloarec authored and nyalldawson committed Oct 17, 2021
1 parent 62bdaac commit 1c9a4767eab37cd9c2b1d82676ebd7698649ddb2
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/gui/testqgsexternalresourcewidgetwrapper.cpp
@@ -1171,6 +1171,7 @@ void TestQgsExternalResourceWidgetWrapper::testBlankAfterValue()

widget->show();

#ifdef WITH_QTWEBKIT
QEventLoop loop;
connect( ww.mQgsWidget->mWebView, &QWebView::loadFinished, &loop, &QEventLoop::quit );

@@ -1184,6 +1185,7 @@ void TestQgsExternalResourceWidgetWrapper::testBlankAfterValue()

QVERIFY( ww.mQgsWidget->mWebView->isVisible() );
QCOMPARE( ww.mQgsWidget->mWebView->url().toString(), QStringLiteral( "about:blank" ) );
#endif
}

QGSTEST_MAIN( TestQgsExternalResourceWidgetWrapper )

0 comments on commit 1c9a476

Please sign in to comment.