summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-06-16 22:52:34 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-06-16 22:52:34 (GMT)
commit8dc1a39c9250c3301a298167a3005eab1bfc4aa8 (patch)
tree3cba3a171600494157915dcdf7718f31bf027ff2 /tests
parenta5bbb79c0fcfbb42a2bd82107af2f9b27f151b05 (diff)
downloadQt-8dc1a39c9250c3301a298167a3005eab1bfc4aa8.zip
Qt-8dc1a39c9250c3301a298167a3005eab1bfc4aa8.tar.gz
Qt-8dc1a39c9250c3301a298167a3005eab1bfc4aa8.tar.bz2
Attempt to stabilize tst_qwidget::syntheticEnterLeave
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index 7d4f8ff..91d07de 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -9233,7 +9233,8 @@ void tst_QWidget::syntheticEnterLeave()
QCOMPARE(grandChild->numLeaveEvents, 0);
QCOMPARE(child1->numLeaveEvents, 0);
- QCOMPARE(window.numEnterEvents, 1);
+ // This event arrives asynchronously
+ QTRY_COMPARE(window.numEnterEvents, 1);
QCOMPARE(child2->numEnterEvents, 1);
QCOMPARE(grandChild->numEnterEvents, 1);
QCOMPARE(child1->numEnterEvents, 0);