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>
This commit is contained in:
J-P Nurmi 2012-09-26 18:14:04 +02:00 committed by The Qt Project
parent 0fbb41dea7
commit 2d70dde68a

View File

@ -87,7 +87,9 @@ private slots:
void shortcutEvents(); void shortcutEvents();
void stopRepeatTimer(); void stopRepeatTimer();
#ifdef QT_KEYPAD_NAVIGATION
void keyNavigation(); void keyNavigation();
#endif
protected slots: protected slots:
void onClicked(); void onClicked();
@ -586,9 +588,10 @@ void tst_QAbstractButton::stopRepeatTimer()
QCOMPARE(button.timerEventCount(), 0); QCOMPARE(button.timerEventCount(), 0);
} }
#ifdef QT_KEYPAD_NAVIGATION
void tst_QAbstractButton::keyNavigation() void tst_QAbstractButton::keyNavigation()
{ {
QSKIP("Key navigation in QAbstractButton will be fixed/improved as part of task 194373"); QApplication::setNavigationMode(Qt::NavigationModeKeypadDirectional);
QWidget widget; QWidget widget;
QGridLayout *layout = new QGridLayout(&widget); QGridLayout *layout = new QGridLayout(&widget);
@ -636,10 +639,11 @@ void tst_QAbstractButton::keyNavigation()
buttons[0][1]->hide(); buttons[0][1]->hide();
QTest::keyPress(buttons[0][2], Qt::Key_Left); QTest::keyPress(buttons[0][2], Qt::Key_Left);
QTest::qWait(100); QTest::qWait(100);
QTest::keyPress(buttons[0][2], Qt::Key_Left);
QEXPECT_FAIL("", "QTBUG-22286" ,Abort);
QVERIFY(buttons[0][0]->hasFocus()); QVERIFY(buttons[0][0]->hasFocus());
} }
#endif
QTEST_MAIN(tst_QAbstractButton) QTEST_MAIN(tst_QAbstractButton)
#include "tst_qabstractbutton.moc" #include "tst_qabstractbutton.moc"