diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2023-07-19 16:35:06 +0200 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2023-07-27 10:55:56 +0000 |
commit | d08e1f06121f943f75bf0d337ad857b1cbb7a94b (patch) | |
tree | ab79c2dcb2ebc081d4d3e9e38c849bc187d8a587 /tests | |
parent | 91d2702481a7f865d85667a141d19066f4d9f7c7 (diff) |
Disable error page for tst_QWebEngineLoadingInfo::responseHeaders
The error page is not relevant for the test but it can significantly
slow down the test because of the embedded javascript.
Pick-to: 6.6
Change-Id: I8b7e876f74110f758c5a23579018c598a29ba1e2
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp b/tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp index daa6bb079..65cc63986 100644 --- a/tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp +++ b/tests/auto/core/qwebengineloadinginfo/tst_qwebengineloadinginfo.cpp @@ -6,6 +6,7 @@ #include <QtWebEngineCore/qwebenginepage.h> #include <QtWebEngineCore/qwebengineloadinginfo.h> #include <QtWebEngineCore/qwebenginehttprequest.h> +#include <QtWebEngineCore/qwebenginesettings.h> #include <httpserver.h> #include <httpreqrep.h> @@ -75,6 +76,7 @@ private Q_SLOTS: QWebEngineProfile profile; QWebEnginePage page(&profile); + page.settings()->setAttribute(QWebEngineSettings::ErrorPageEnabled, false); QSignalSpy spy(&page, SIGNAL(loadFinished(bool))); QObject::connect(&page, &QWebEnginePage::loadingChanged, this, &tst_QWebEngineLoadingInfo::loadingInfoChanged); @@ -82,7 +84,7 @@ private Q_SLOTS: QWebEngineHttpRequest request(httpServer.url("/somepage.html")); page.load(request); - QTRY_VERIFY_WITH_TIMEOUT(spy.count() > 0, 20000); + QTRY_VERIFY(spy.count() > 0); QVERIFY(httpServer.stop()); } }; |