Remove insignification from QMdiSubWindow test on Mac OS X.

This test has four stable failures. Mark those with QEXPECT_FAIL and
re-enable the test.

Task-number: QTBUG-25297
Change-Id: Ic5304443c4467c46f70ef033c8f17d7f3732294c
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
bb10
Jason McDonald 2012-04-19 23:59:08 +10:00 committed by Qt by Nokia
parent 7d422688c2
commit 5fc7490f95
2 changed files with 12 additions and 3 deletions

View File

@ -4,6 +4,3 @@ QT += widgets testlib
INCLUDEPATH += .
SOURCES += tst_qmdisubwindow.cpp
DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
mac*:CONFIG+=insignificant_test # QTBUG-25297

View File

@ -610,6 +610,9 @@ void tst_QMdiSubWindow::showShaded()
else
#endif
mouseReceiver = window;
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "QTBUG-25297", Abort);
#endif
QVERIFY(mouseReceiver);
sendMouseMove(mouseReceiver, mousePosition, Qt::NoButton);
sendMousePress(mouseReceiver, mousePosition);
@ -724,6 +727,9 @@ void tst_QMdiSubWindow::setOpaqueResizeAndMove()
mouseReceiver = qFindChild<QSizeGrip *>(window);
else
mouseReceiver = window;
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "QTBUG-25297", Abort);
#endif
QVERIFY(mouseReceiver);
// ----------------------------- resize -----------------------------
@ -1432,6 +1438,9 @@ void tst_QMdiSubWindow::defaultSizeGrip()
// QSizeGrip on windows with decoration.
QMdiSubWindow *windowWithDecoration = mdiArea.addSubWindow(new QWidget);
windowWithDecoration->show();
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "QTBUG-25297", Abort);
#endif
QVERIFY(qFindChild<QSizeGrip *>(windowWithDecoration));
// ...but not on windows without decoration (Qt::FramelessWindowHint).
@ -1699,6 +1708,9 @@ void tst_QMdiSubWindow::fixedMinMaxSize()
// to minimize the window.
subWindow->showMinimized();
QVERIFY(subWindow->isMinimized());
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "QTBUG-25297", Abort);
#endif
QCOMPARE(subWindow->size(), minimizedSize);
QCOMPARE(subWindow->minimumSize(), minimizedSize);