diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-06-17 08:52:34 +1000 |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-06-17 08:52:34 +1000 |
commit | 8dc1a39c9250c3301a298167a3005eab1bfc4aa8 (patch) | |
tree | 3cba3a171600494157915dcdf7718f31bf027ff2 /tests/auto | |
parent | a5bbb79c0fcfbb42a2bd82107af2f9b27f151b05 (diff) | |
download | qt4-tools-8dc1a39c9250c3301a298167a3005eab1bfc4aa8.tar.gz |
Attempt to stabilize tst_qwidget::syntheticEnterLeave
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 3 |
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); |