summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/quick/qmltests/data/tst_certificateError.qml17
-rw-r--r--tests/auto/widgets/certificateerror/tst_certificateerror.cpp18
2 files changed, 0 insertions, 35 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_certificateError.qml b/tests/auto/quick/qmltests/data/tst_certificateError.qml
index d6c7edfd8..07cfa3aa8 100644
--- a/tests/auto/quick/qmltests/data/tst_certificateError.qml
+++ b/tests/auto/quick/qmltests/data/tst_certificateError.qml
@@ -115,22 +115,5 @@ TestWebEngineView {
view.certificateError.disconnect(handleCertificateError)
}
-
- function test_fatalError() {
- var handleCertificateError = function(error) {
- verify(!error.overrideable);
- // QQuickWebEngineViewPrivate::allowCertificateError() will implicitly reject
- // fatal errors and it should not crash if already rejected in handler.
- error.rejectCertificate();
- }
- view.certificateError.connect(handleCertificateError);
-
- view.url = Qt.resolvedUrl('https://revoked.badssl.com');
- if (!view.waitForLoadFailed(10000))
- skip("Couldn't load page from network, skipping test.");
- compare(spyError.count, 1);
-
- view.certificateError.disconnect(handleCertificateError);
- }
}
}
diff --git a/tests/auto/widgets/certificateerror/tst_certificateerror.cpp b/tests/auto/widgets/certificateerror/tst_certificateerror.cpp
index 4bb29fe23..29b35df93 100644
--- a/tests/auto/widgets/certificateerror/tst_certificateerror.cpp
+++ b/tests/auto/widgets/certificateerror/tst_certificateerror.cpp
@@ -44,7 +44,6 @@ public:
private Q_SLOTS:
void handleError_data();
void handleError();
- void fatalError();
};
struct PageWithCertificateErrorHandler : QWebEnginePage
@@ -126,22 +125,5 @@ void tst_CertificateError::handleError()
QCOMPARE(toPlainTextSync(&page), expectedContent);
}
-void tst_CertificateError::fatalError()
-{
- PageWithCertificateErrorHandler page(false, false);
- page.profile()->setUseForGlobalCertificateVerification();
- page.settings()->setAttribute(QWebEngineSettings::ErrorPageEnabled, false);
- QSignalSpy loadFinishedSpy(&page, &QWebEnginePage::loadFinished);
-
- page.setUrl(QUrl("https://revoked.badssl.com"));
- if (!loadFinishedSpy.wait(10000))
- QSKIP("Couldn't load page from network, skipping test.");
- QTRY_VERIFY(page.error);
- QVERIFY(!page.error->isOverridable());
-
- // Fatal certificate errors are implicitly rejected. This should not cause crash.
- page.error->rejectCertificate();
-}
-
QTEST_MAIN(tst_CertificateError)
#include <tst_certificateerror.moc>