summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/quick/qmltests/data/tst_titleChanged.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_titleChanged.qml b/tests/auto/quick/qmltests/data/tst_titleChanged.qml
index 54975af24..7dda5ce33 100644
--- a/tests/auto/quick/qmltests/data/tst_titleChanged.qml
+++ b/tests/auto/quick/qmltests/data/tst_titleChanged.qml
@@ -52,6 +52,11 @@ TestWebEngineView {
var testUrl = Qt.resolvedUrl("test3.html")
webEngineView.url = testUrl
spyTitle.wait()
+ if (webEngineView.title == "test3.html") {
+ // This title may be emitted during loading
+ spyTitle.clear()
+ spyTitle.wait()
+ }
compare(webEngineView.title, "Test page 3")
spyTitle.clear()
spyTitle.wait()