diff options
author | Christian StrΓΈmme <christian.stromme@qt.io> | 2024-06-26 18:59:33 +0200 |
---|---|---|
committer | Christian StrΓΈmme <christian.stromme@qt.io> | 2024-07-05 07:50:44 +0000 |
commit | fe7a3a2e140014007b76da38c94f01acada6813b (patch) | |
tree | 18cbe6b4521a8b3ac1b290d7e927644c67314cc9 | |
parent | 0916b3211c4ab964ec303a37a7c0b83a3b12d3a5 (diff) |
Fix failing test due to async title update in WKWebView
The title isn't changed immediately, so do QTRY_COMPARE
Pick-to: 6.8 6.7 6.5
Change-Id: I565ed9fadabdc491599b1d390c4ded6232857420
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
-rw-r--r-- | tests/auto/qml/qquickwebview/tst_qquickwebview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qquickwebview/tst_qquickwebview.cpp b/tests/auto/qml/qquickwebview/tst_qquickwebview.cpp index 139dd85..8352144 100644 --- a/tests/auto/qml/qquickwebview/tst_qquickwebview.cpp +++ b/tests/auto/qml/qquickwebview/tst_qquickwebview.cpp @@ -444,7 +444,7 @@ void tst_QQuickWebView::settings_JS() webView()->settings()->setJavaScriptEnabled(jsEnabled); webView()->setUrl(testUrl); QVERIFY(waitForLoadSucceeded(webView())); - QCOMPARE(webView()->title(), expectedTitle); + QTRY_COMPARE(webView()->title(), expectedTitle); webView()->settings()->setJavaScriptEnabled(wasJsEnabled); } |