Don't ignore tst_QWindow on Mac OS X

QTBUG-23059 only affects 2 test functions, not the whole test. XFAIL the
2 failing tests.

Change-Id: I87086a9ec573362625bc090038dfd7c79aeb9426
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
bb10
Bradley T. Hughes 2012-04-04 12:16:40 +02:00 committed by Qt by Nokia
parent 71616d2c7a
commit 6dbaf9f536
2 changed files with 6 additions and 3 deletions

View File

@ -4,6 +4,3 @@ TARGET = tst_qwindow
QT += core-private gui-private testlib
SOURCES += tst_qwindow.cpp
mac: CONFIG += insignificant_test # QTBUG-23059

View File

@ -139,6 +139,9 @@ void tst_QWindow::positioning()
QCOMPARE(window.geometry(), geometry);
window.show();
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "This test fails on Mac OS X, see QTBUG-23059", Abort);
#endif
QTRY_COMPARE(window.received(QEvent::Resize), 1);
QTRY_COMPARE(window.received(QEvent::Map), 1);
@ -188,6 +191,9 @@ void tst_QWindow::isActive()
window.setGeometry(80, 80, 40, 40);
window.show();
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "This test fails on Mac OS X, see QTBUG-23059", Abort);
#endif
QTRY_COMPARE(window.received(QEvent::Map), 1);
QTRY_COMPARE(window.received(QEvent::Resize), 1);
QTRY_VERIFY(QGuiApplication::focusWindow() == &window);