summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtouchevent
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-08 10:10:41 +0200
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-08 10:10:41 +0200
commite982ba18f8cffaa55f7c73a3ef877932abb91db1 (patch)
treec1eabd836792dfcd31b193ceea2011014765b383 /tests/auto/qtouchevent
parent8f86de1aa775a44c3477a318635a7ed8ff4ed064 (diff)
make QTouchEvent autotest pass
the event is accepted by default, but no handled
Diffstat (limited to 'tests/auto/qtouchevent')
-rw-r--r--tests/auto/qtouchevent/tst_qtouchevent.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qtouchevent/tst_qtouchevent.cpp b/tests/auto/qtouchevent/tst_qtouchevent.cpp
index 9ec3dd7907..8ed703527e 100644
--- a/tests/auto/qtouchevent/tst_qtouchevent.cpp
+++ b/tests/auto/qtouchevent/tst_qtouchevent.cpp
@@ -67,9 +67,9 @@ void tst_QTouchEvent::touchDisabledByDefault()
Qt::NoModifier,
Qt::TouchPointPressed,
touchPoints);
- bool res = QApplication::sendEvent(&widget, &touchEvent)
- && touchEvent.isAccepted();
+ bool res = QApplication::sendEvent(&widget, &touchEvent);
QVERIFY(!res);
+ QVERIFY(!touchEvent.isAccepted());
}
void tst_QTouchEvent::touchEventAcceptedByDefault()
@@ -84,9 +84,9 @@ void tst_QTouchEvent::touchEventAcceptedByDefault()
Qt::NoModifier,
Qt::TouchPointPressed,
touchPoints);
- bool res = QApplication::sendEvent(&widget, &touchEvent)
- && touchEvent.isAccepted();
- QVERIFY(res);
+ bool res = QApplication::sendEvent(&widget, &touchEvent);
+ QVERIFY(!res); // not handled...
+ QVERIFY(touchEvent.isAccepted()); // but accepted
}
QTEST_MAIN(tst_QTouchEvent)