diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2012-09-26 18:14:04 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 18:35:55 +0200 |
commit | 2d70dde68a1af355ae10cd6bd34f44006f16918a (patch) | |
tree | a811eb4ddcb46446b66738b008f655f92f5b836a /tests | |
parent | 0fbb41dea783d15797fa2af2d3d8737fe770bcfb (diff) |
tst_QAbstractButton::keyNavigation(): QSKIP -> XFAIL
Task-number: QTBUG-22286
Change-Id: If2c0e9181f2d954f3487dbb4c3f440d26a38adb6
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/widgets/widgets/qabstractbutton/tst_qabstractbutton.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/auto/widgets/widgets/qabstractbutton/tst_qabstractbutton.cpp b/tests/auto/widgets/widgets/qabstractbutton/tst_qabstractbutton.cpp index 6e3e04bfd5..8bfdc77732 100644 --- a/tests/auto/widgets/widgets/qabstractbutton/tst_qabstractbutton.cpp +++ b/tests/auto/widgets/widgets/qabstractbutton/tst_qabstractbutton.cpp @@ -87,7 +87,9 @@ private slots: void shortcutEvents(); void stopRepeatTimer(); +#ifdef QT_KEYPAD_NAVIGATION void keyNavigation(); +#endif protected slots: void onClicked(); @@ -586,9 +588,10 @@ void tst_QAbstractButton::stopRepeatTimer() QCOMPARE(button.timerEventCount(), 0); } +#ifdef QT_KEYPAD_NAVIGATION void tst_QAbstractButton::keyNavigation() { - QSKIP("Key navigation in QAbstractButton will be fixed/improved as part of task 194373"); + QApplication::setNavigationMode(Qt::NavigationModeKeypadDirectional); QWidget widget; QGridLayout *layout = new QGridLayout(&widget); @@ -636,10 +639,11 @@ void tst_QAbstractButton::keyNavigation() buttons[0][1]->hide(); QTest::keyPress(buttons[0][2], Qt::Key_Left); QTest::qWait(100); + QTest::keyPress(buttons[0][2], Qt::Key_Left); + QEXPECT_FAIL("", "QTBUG-22286" ,Abort); QVERIFY(buttons[0][0]->hasFocus()); - - } +#endif QTEST_MAIN(tst_QAbstractButton) #include "tst_qabstractbutton.moc" |