diff options
Diffstat (limited to 'tests/auto/integrationtests/qfocusevent/tst_qfocusevent.cpp')
-rw-r--r-- | tests/auto/integrationtests/qfocusevent/tst_qfocusevent.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/auto/integrationtests/qfocusevent/tst_qfocusevent.cpp b/tests/auto/integrationtests/qfocusevent/tst_qfocusevent.cpp index 931059b211..cc58b6212c 100644 --- a/tests/auto/integrationtests/qfocusevent/tst_qfocusevent.cpp +++ b/tests/auto/integrationtests/qfocusevent/tst_qfocusevent.cpp @@ -106,9 +106,7 @@ public slots: private slots: void checkReason_Tab(); void checkReason_ShiftTab(); -#ifndef Q_OS_WIN32 void checkReason_BackTab(); -#endif void checkReason_Popup(); void checkReason_focusWidget(); void checkReason_Shortcut(); @@ -230,10 +228,11 @@ void tst_QFocusEvent::checkReason_ShiftTab() /*! In this test we verify that the Qt::KeyBacktab key is handled in a qfocusevent */ -// Backtab is not supported on Windows. -#ifndef Q_OS_WIN32 void tst_QFocusEvent::checkReason_BackTab() { +#ifdef Q_OS_WIN32 // key is not supported on Windows + QSKIP( "Backtab is not supported on Windows"); +#else initWidget(); QVERIFY( childFocusWidgetOne->hasFocus() ); @@ -249,8 +248,8 @@ void tst_QFocusEvent::checkReason_BackTab() QVERIFY( childFocusWidgetTwo->hasFocus() ); QCOMPARE( childFocusWidgetOne->focusOutEventReason, int(Qt::BacktabFocusReason) ); QCOMPARE( childFocusWidgetTwo->focusInEventReason, int(Qt::BacktabFocusReason) ); -} #endif +} void tst_QFocusEvent::checkReason_Popup() { |