diff options
author | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-04-08 18:38:41 +0200 |
---|---|---|
committer | Balazs Egedi <egedib@inf.u-szeged.hu> | 2021-04-09 10:45:37 +0200 |
commit | 11ddd321f181d29fddc5ba998c0be85c2f3de166 (patch) | |
tree | 761d6b78f7889f4c13297116ab6b9277bf028f6b /tests/auto/quick/qmltests | |
parent | d1398e734c927435f236c2eed36613bedf71acf6 (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.qml | 4 |
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()) |