From 4f0f9f106d1e3e7d08280efbf7d4a2ff3552a361 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Fri, 2 Oct 2009 14:29:41 +0200 Subject: Stabilize the SyntheticEnterLeave tests. Reset the mouse position to a known state at the start, instead of depending on what the previous test did. Reviewed-by: Jeremy --- tests/auto/qwidget/tst_qwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/qwidget') diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index a9033ba3b9..e31d62113b 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -8892,6 +8892,8 @@ void tst_QWidget::syntheticEnterLeave() int numLeaveEvents; }; + QCursor::setPos(QPoint(0,0)); + MyWidget window; window.setWindowFlags(Qt::WindowStaysOnTopHint); window.resize(200, 200); @@ -9009,6 +9011,8 @@ void tst_QWidget::taskQTBUG_4055_sendSyntheticEnterLeave() int numEnterEvents, numMouseMoveEvents; }; + QCursor::setPos(QPoint(0,0)); + SELParent parent; parent.resize(200, 200); SELChild child(&parent); -- cgit v1.2.1