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