summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-07-23 07:05:31 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-02 14:25:52 (GMT)
commit46115a0b8d3de85170a2600b5abb81458dc263bf (patch)
tree62d8f1db00c9a99ee85bf4f773669819ad4295c0
parent8a74d2041e24a17e70e1a00d0cc3794250a13fed (diff)
downloadQt-46115a0b8d3de85170a2600b5abb81458dc263bf.zip
Qt-46115a0b8d3de85170a2600b5abb81458dc263bf.tar.gz
Qt-46115a0b8d3de85170a2600b5abb81458dc263bf.tar.bz2
Fixed the QMouseEvent_modal autotest.
Added some waits, needed on slower platforms, like maemo
-rw-r--r--tests/auto/qmouseevent_modal/tst_qmouseevent_modal.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qmouseevent_modal/tst_qmouseevent_modal.cpp b/tests/auto/qmouseevent_modal/tst_qmouseevent_modal.cpp
index 99a8913..694d65d 100644
--- a/tests/auto/qmouseevent_modal/tst_qmouseevent_modal.cpp
+++ b/tests/auto/qmouseevent_modal/tst_qmouseevent_modal.cpp
@@ -147,12 +147,14 @@ void tst_qmouseevent_modal::mousePressRelease()
QVERIFY( w->d->count() == 0 );
QTest::mousePress( w->pb, Qt::LeftButton );
+ QTest::qWait(200);
QVERIFY( !w->d->isVisible() );
QVERIFY( w->d->count() == 1 );
QVERIFY( !w->pb->isDown() );
QTest::mousePress( w->pb, Qt::LeftButton );
+ QTest::qWait(200);
QVERIFY( !w->d->isVisible() );
QVERIFY( w->d->count() == 2 );
@@ -161,12 +163,14 @@ void tst_qmouseevent_modal::mousePressRelease()
// With the current QWS mouse handling, the 3rd press would fail...
QTest::mousePress( w->pb, Qt::LeftButton );
+ QTest::qWait(200);
QVERIFY( !w->d->isVisible() );
QVERIFY( w->d->count() == 3 );
QVERIFY( !w->pb->isDown() );
QTest::mousePress( w->pb, Qt::LeftButton );
+ QTest::qWait(200);
QVERIFY( !w->d->isVisible() );
QVERIFY( w->d->count() == 4 );