Skip to content

Commit

Permalink
fix build without QtWebKit
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Oct 17, 2021
1 parent 62bdaac commit 1c9a476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/gui/testqgsexternalresourcewidgetwrapper.cpp
Expand Up @@ -1171,6 +1171,7 @@ void TestQgsExternalResourceWidgetWrapper::testBlankAfterValue()

widget->show();

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

Expand All @@ -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 )
Expand Down

0 comments on commit 1c9a476

Please sign in to comment.