summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/tst_certificateError.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_certificateError.qml')
-rw-r--r--tests/auto/quick/qmltests/data/tst_certificateError.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_certificateError.qml b/tests/auto/quick/qmltests/data/tst_certificateError.qml
index 07cfa3aa8..dcfd13498 100644
--- a/tests/auto/quick/qmltests/data/tst_certificateError.qml
+++ b/tests/auto/quick/qmltests/data/tst_certificateError.qml
@@ -91,7 +91,8 @@ TestWebEngineView {
}
view.certificateError.connect(handleCertificateError)
- view.url = Shared.HttpsServer.url()
+ const server_url = Shared.HttpsServer.url()
+ view.url = server_url
if (data.deferError) {
spyError.wait()
@@ -114,6 +115,12 @@ TestWebEngineView {
compare(data.expectedContent, view.getBodyText())
view.certificateError.disconnect(handleCertificateError)
+
+ let error = spyError.signalArguments[0][0]
+ compare(error.url, server_url)
+ verify(error.description.length > 0)
+ verify(error.overridable)
+ compare(error.type, WebEngineCertificateError.CertificateAuthorityInvalid)
}
}
}