--- a/phoneapp/phoneui2/tsrc/ut_phoneuikeyeventadapter/unit_tests.cpp Fri Mar 19 09:28:42 2010 +0200
+++ b/phoneapp/phoneui2/tsrc/ut_phoneuikeyeventadapter/unit_tests.cpp Fri Apr 16 14:58:25 2010 +0300
@@ -59,10 +59,11 @@
void cleanup ();
private slots:
- void testKeyPressEvents ();
- void testKeyReleaseEvents ();
- void testKeyPressEventsByQtKeys ();
- void testLeave ();
+ void testKeyPressEvents();
+ void testKeyReleaseEvents();
+ void testKeyPressEventsByQtKeys();
+ void testLeave();
+ void testEndKeyLongPress();
@@ -200,5 +201,14 @@
delete keyEvent;
}
+void TestPhoneKeyEventAdapter::testEndKeyLongPress()
+{
+ m_keyadapter->endKeyLongPress();
+ QCOMPARE((int)m_eventCode, EEventLongPress);
+ QCOMPARE(m_scan_code, (int)EKeyNo);
+ QCOMPARE(m_code, (int)EKeyNo);
+ QCOMPARE(m_repeats, 0);
+}
+
PHONE_QT_TEST_MAIN(TestPhoneKeyEventAdapter)
#include "unit_tests.moc"