summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@qt.io>2018-08-02 09:55:22 +0200
committerMichael BrĂ¼ning <michael.bruning@qt.io>2018-08-02 12:17:37 +0000
commitd62cb919722f0baad4d0826e566b9a63f7fc7488 (patch)
treed0230c99061b7e6f400e0dc80ae758ed039a98a5 /tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
parent6f9edfab79b53c06152bc9e049c4f69bc0c440e4 (diff)
Fix failing mouseMovementProperties auto test on Windows and macOS
The view did not get all the movement events if the mouse was moved onto the view after it had loaded the page. Fix this by placing the mouse onto the view before setting the html content. Task-number: QTBUG-66527 Change-Id: I6d6847d5215005fe9490250b5b4f0c01ce317c23 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp')
-rw-r--r--tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
index ee2c36012..47a94374a 100644
--- a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
+++ b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
@@ -4081,6 +4081,7 @@ void tst_QWebEnginePage::mouseMovementProperties()
ConsolePage page;
view.setPage(&page);
view.resize(640, 480);
+ QTest::mouseMove(&view, QPoint(10, 10));
view.show();
QVERIFY(QTest::qWaitForWindowExposed(&view));