summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-06-17 08:52:34 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-06-17 08:52:34 +1000
commit8dc1a39c9250c3301a298167a3005eab1bfc4aa8 (patch)
tree3cba3a171600494157915dcdf7718f31bf027ff2 /tests/auto
parenta5bbb79c0fcfbb42a2bd82107af2f9b27f151b05 (diff)
downloadqt4-tools-8dc1a39c9250c3301a298167a3005eab1bfc4aa8.tar.gz
Attempt to stabilize tst_qwidget::syntheticEnterLeave
Diffstat (limited to 'tests/auto')
-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 7d4f8ffa1a..91d07ded38 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);