summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-10-02 12:29:41 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-10-02 12:32:12 (GMT)
commit4f0f9f106d1e3e7d08280efbf7d4a2ff3552a361 (patch)
tree94e35fb3d9ba5b0ded43ac59106d37c2f236140b /tests
parent0e498bdf15e38cc0700fa03c5e20e25559186971 (diff)
downloadQt-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')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp4
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);