summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmouseevent_modal
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-07-23 09:05:31 +0200
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-02 15:25:52 +0100
commit46115a0b8d3de85170a2600b5abb81458dc263bf (patch)
tree62d8f1db00c9a99ee85bf4f773669819ad4295c0 /tests/auto/qmouseevent_modal
parent8a74d2041e24a17e70e1a00d0cc3794250a13fed (diff)
Fixed the QMouseEvent_modal autotest.
Added some waits, needed on slower platforms, like maemo
Diffstat (limited to 'tests/auto/qmouseevent_modal')
-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 99a8913944..694d65de6c 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 );