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

WebViewTest: Adjust expected loadFinished signal count

This commit is contained in:
David Rosca 2018-04-22 16:10:58 +02:00
parent 9f0817ca71
commit af89a1b8d4
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -82,7 +82,7 @@ void WebViewTest::loadSignalsChangePageTest()
view.setPage(page2);
// WebPage: Workaround for broken load started/finished signals in QtWebEngine 5.10
const int loadFinishedEmitCount = qstrncmp(qVersion(), "5.10.", 5) == 0 ? 2 : 1;
const int loadFinishedEmitCount = qstrncmp(qVersion(), "5.11.", 5) == 0 ? 1 : 2;
QTRY_COMPARE(loadFinishedSpy.count(), loadFinishedEmitCount);
QCOMPARE(loadStartedSpy.count(), 0);