qfiledialog2: Skip test that is passing on CI and failing otherwise.
authorToby Tomkins <toby.tomkins@nokia.com>
Fri, 24 Feb 2012 07:16:32 +0000 (17:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 07:08:50 +0000 (08:08 +0100)
Task-number: QTBUG-23602

Change-Id: Id5dfb85956048c60849d865161212b0764e8f250
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp

index 7ab3100..4a6f714 100644 (file)
@@ -489,6 +489,9 @@ void tst_QFileDialog2::task227304_proxyOnFileDialog()
 
 void tst_QFileDialog2::task227930_correctNavigationKeyboardBehavior()
 {
+#ifdef Q_OS_MAC
+    QSKIP("This test currently fails on Mac OS X, see QTBUG-23602");
+#endif
     QDir current = QDir::currentPath();
     current.mkdir("test");
     current.cd("test");
@@ -515,9 +518,6 @@ void tst_QFileDialog2::task227930_correctNavigationKeyboardBehavior()
     QTest::keyClick(list, Qt::Key_Down);
     QTest::keyClick(list, Qt::Key_Return);
     QTest::qWait(200);
-#ifdef Q_OS_MAC
-    QEXPECT_FAIL("", "This test currently fails on Mac OS X, see QTBUG-23602", Continue);
-#endif
     QCOMPARE(fd.isVisible(), true);
     QTest::qWait(200);
     file.close();