Expect tooltip related test failures on Mac OS X

Mark test failures related to tool tips with QEXPECT_FAIL(). See
QTBUG-23707 for description of the failures.

Change-Id: I753256d1db748cef41cf1898620647c4cbacc472
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
Bradley T. Hughes 2012-01-17 09:58:50 +01:00 committed by Qt by Nokia
parent 0d12500240
commit e6a538a3ed
3 changed files with 15 additions and 0 deletions

View File

@ -1069,6 +1069,9 @@ void tst_QGraphicsItem::toolTip()
foundTipLabel = true;
}
QVERIFY(foundView);
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "QTBUG-23707", Continue);
#endif
QVERIFY(foundTipLabel);
}

View File

@ -2640,6 +2640,9 @@ void tst_QGraphicsProxyWidget::tooltip_basic()
foundTipLabel = true;
}
QVERIFY(foundView);
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "QTBUG-23707", Continue);
#endif
QVERIFY(foundTipLabel);
}
}

View File

@ -116,6 +116,9 @@ void tst_QToolTip::task183679()
widget.showDelayedToolTip(100);
QTest::qWait(300);
#ifdef Q_OS_MAC
QEXPECT_FAIL("", "QTBUG-23707", Continue);
#endif
QTRY_VERIFY(QToolTip::isVisible());
QTest::keyPress(&widget, key);
@ -125,6 +128,12 @@ void tst_QToolTip::task183679()
// auto-close timeout (currently 10000 msecs)
QTest::qWait(1500);
#ifdef Q_OS_MAC
QEXPECT_FAIL("Shift", "QTBUG-23707", Continue);
QEXPECT_FAIL("Control", "QTBUG-23707", Continue);
QEXPECT_FAIL("Alt", "QTBUG-23707", Continue);
QEXPECT_FAIL("Meta", "QTBUG-23707", Continue);
#endif
QCOMPARE(QToolTip::isVisible(), visible);
}