summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qmltests
diff options
context:
space:
mode:
authorBalazs Egedi <egedib@inf.u-szeged.hu>2021-04-08 18:38:41 +0200
committerBalazs Egedi <egedib@inf.u-szeged.hu>2021-04-09 10:45:37 +0200
commit11ddd321f181d29fddc5ba998c0be85c2f3de166 (patch)
tree761d6b78f7889f4c13297116ab6b9277bf028f6b /tests/auto/quick/qmltests
parentd1398e734c927435f236c2eed36613bedf71acf6 (diff)
Fix qmltests::WebEngineViewNavigationHistory auto tests
Delete loadProgress zero-check from the tests and clear the history instead. The zero-check was used to guarantee the empty history, but it will not pass if multiple tests are performed. Change-Id: I370a51b5631d8fab99209d6a81c8aedd12d5e4a4 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests')
-rw-r--r--tests/auto/quick/qmltests/data/tst_navigationHistory.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_navigationHistory.qml b/tests/auto/quick/qmltests/data/tst_navigationHistory.qml
index f32af2106..47be2f47d 100644
--- a/tests/auto/quick/qmltests/data/tst_navigationHistory.qml
+++ b/tests/auto/quick/qmltests/data/tst_navigationHistory.qml
@@ -78,7 +78,7 @@ TestWebEngineView {
name: "WebEngineViewNavigationHistory"
function test_navigationHistory() {
- compare(webEngineView.loadProgress, 0)
+ webEngineView.navigationHistory.clear()
webEngineView.url = Qt.resolvedUrl("test1.html")
verify(webEngineView.waitForLoadSucceeded())
@@ -159,7 +159,7 @@ TestWebEngineView {
}
function test_navigationButtons() {
- compare(webEngineView.loadProgress, 0)
+ webEngineView.navigationHistory.clear()
webEngineView.url = Qt.resolvedUrl("test1.html")
verify(webEngineView.waitForLoadSucceeded())