summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests/data/tst_titleChanged.qml
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-09-26 14:39:23 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-09-26 20:51:32 +0000
commita8eb38eb4124da6af7815fd3720718464745f152 (patch)
treed9836bd52844055d229cf14ccfb8373bb0b851e6 /tests/auto/quick/qmltests/data/tst_titleChanged.qml
parent556afb426da9f81cbe2fd28b7911e8c788fc9c83 (diff)
Speculative stabilization of titleChanged
Only wait on title-changed signal before checking, this also makes it safe to reduce the timeout for changing title, speeding up the test. Change-Id: I4ecaf9400dfea624b39c73277425e09a52ea7b92 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_titleChanged.qml')
-rw-r--r--tests/auto/quick/qmltests/data/tst_titleChanged.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_titleChanged.qml b/tests/auto/quick/qmltests/data/tst_titleChanged.qml
index 23361c5f4..54975af24 100644
--- a/tests/auto/quick/qmltests/data/tst_titleChanged.qml
+++ b/tests/auto/quick/qmltests/data/tst_titleChanged.qml
@@ -51,10 +51,9 @@ TestWebEngineView {
var testUrl = Qt.resolvedUrl("test3.html")
webEngineView.url = testUrl
- verify(webEngineView.waitForLoadSucceeded())
+ spyTitle.wait()
compare(webEngineView.title, "Test page 3")
spyTitle.clear()
-
spyTitle.wait()
compare(webEngineView.title, "New Title")
}