diff options
author | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2016-01-11 10:22:58 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2016-01-11 14:09:33 +0000 |
commit | 9a8fe6c59a41f7a42ee0cf14e536202bd5be3a64 (patch) | |
tree | 5c76371e0ecb4e774fc08af28e53e2957d9b044a | |
parent | 84f0bed975eb1be4c4db1c47acde4e9ce9eb4628 (diff) |
Stabilize tst_QWebEnginePage::symmetricUrl some more
The second call to setUrl might override the first setUrl,
depending on the timing.
Change-Id: I30a8257751be3256a61668bd57195b1a12154d68
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
-rw-r--r-- | tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp index 82fe03344..8fd71c701 100644 --- a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp +++ b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp @@ -3796,8 +3796,9 @@ void tst_QWebEnginePage::symmetricUrl() QCOMPARE(view.url(), dataUrl3); + // setUrl(dataUrl3) might override the pending load for dataUrl2. Or not. QTRY_VERIFY(loadFinishedSpy.count() >= 2); - QTRY_COMPARE(loadFinishedSpy.count(), 3); + QTRY_VERIFY(loadFinishedSpy.count() <= 3); // setUrl(dataUrl3) might stop Chromium from adding a navigation entry for dataUrl2, // depending on whether the load of dataUrl2 could be completed in time. |