Remove insignfication from QGuiApplication test on Windows.

This test has two stable failures, one of which slipped through while
the test was disabled.  Mark the failures with QEXPECT_FAIL and
re-enable the test.

Task-number: QTBUG-24186
Change-Id: Ie24f86603a01634d6eec5a42baa77e966f9388c8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Jason McDonald 2012-04-17 23:08:37 +10:00 committed by Qt by Nokia
parent 46556529ec
commit d43c931cf0
2 changed files with 6 additions and 2 deletions

View File

@ -2,5 +2,3 @@ CONFIG += testcase
TARGET = tst_qguiapplication
QT += core gui testlib
SOURCES = tst_qguiapplication.cpp
win32:CONFIG += insignificant_test # QTBUG-24186

View File

@ -116,6 +116,9 @@ void tst_QGuiApplication::focusObject()
QTest::qWaitForWindowShown(&window2);
QTRY_COMPARE(app.focusWindow(), &window2);
QCOMPARE(app.focusObject(), &obj3);
#ifdef Q_OS_WIN
QEXPECT_FAIL("", "QTBUG-24186", Abort);
#endif
QCOMPARE(spy.count(), 1);
// focus change on unfocused window does not show
@ -238,6 +241,9 @@ void tst_QGuiApplication::changeFocusWindow()
window2.requestActivateWindow();
QTRY_COMPARE(app.focusWindow(), &window2);
QCOMPARE(window1.windowDuringFocusAboutToChange, &window1);
#ifdef Q_OS_WIN
QEXPECT_FAIL("", "QTBUG-24186", Abort);
#endif
QCOMPARE(window1.windowDuringFocusOut, &window2);
}