diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-09-28 12:29:52 +0200 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2016-09-30 05:17:21 +0000 |
commit | 34e3e19a158549c780eb50a9876809c6280ca867 (patch) | |
tree | e276b13bcf99247acfa0b9baefa4011f13ad688b | |
parent | 9c3d12d40b6cdb8ef0f560406db3158f9a18a738 (diff) |
Fixup test_titleFirstLoad
Also allow the title to change to the URL during loading until the
content title is parsed.
Change-Id: Ie8059885576c840dbee639a597f78e1004ba1851
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
-rw-r--r-- | tests/auto/quick/qmltests/data/tst_titleChanged.qml | 5 |
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() |