test: Remove QSKIP from tst_QFocusEvent::checkReason_ActiveWindow()
authorSergio Ahumada <sergio.ahumada@nokia.com>
Mon, 10 Sep 2012 10:12:36 +0000 (12:12 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 22 Sep 2012 21:40:02 +0000 (23:40 +0200)
This test actually passes using the "xcb" platform and fails otherwise.

Second, the Jira task is misleading since it refers to
tst_QFocusEvent::checkReason_Shortcut()

Change-Id: Icab91ace8c214d958b534c5cebae900242522372
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
tests/auto/other/qfocusevent/tst_qfocusevent.cpp

index 2b20c34..a02462d 100644 (file)
@@ -352,6 +352,8 @@ void tst_QFocusEvent::checkReason_ActiveWindow()
 
     QDialog* d = new QDialog( testFocusWidget );
     d->show();
+    QVERIFY(QTest::qWaitForWindowExposed(d));
+
     d->activateWindow(); // ### CDE
     QApplication::setActiveWindow(d);
     QVERIFY(QTest::qWaitForWindowActive(d));
@@ -373,8 +375,6 @@ void tst_QFocusEvent::checkReason_ActiveWindow()
 #ifdef Q_OS_MAC
     QEXPECT_FAIL("", "QTBUG-22815", Abort);
 #endif
-    if (QGuiApplication::platformName() == QStringLiteral("xcb"))
-        QSKIP("QTBUG-22815 - This test is unstable on this platform");
     QTRY_VERIFY(childFocusWidgetOne->focusInEventRecieved);
     QVERIFY(childFocusWidgetOne->focusInEventGotFocus);