diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-10-02 12:29:41 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-10-02 12:32:12 (GMT) |
commit | 4f0f9f106d1e3e7d08280efbf7d4a2ff3552a361 (patch) | |
tree | 94e35fb3d9ba5b0ded43ac59106d37c2f236140b /tests/auto/qwidget | |
parent | 0e498bdf15e38cc0700fa03c5e20e25559186971 (diff) | |
download | Qt-4f0f9f106d1e3e7d08280efbf7d4a2ff3552a361.zip Qt-4f0f9f106d1e3e7d08280efbf7d4a2ff3552a361.tar.gz Qt-4f0f9f106d1e3e7d08280efbf7d4a2ff3552a361.tar.bz2 |
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
Diffstat (limited to 'tests/auto/qwidget')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index a9033ba..e31d621 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); |