Skip all tst_QFontDialog tests on Mac OS X

All of these tests currently hang.

Task-number: QTBUG-24321
Change-Id: I7664b57f6539d4c03008701da66e193019a4440a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
Bradley T. Hughes 2012-02-16 09:35:53 +01:00 committed by Qt by Nokia
parent a902387204
commit ea1ef2a471

View File

@ -114,6 +114,9 @@ void tst_QFontDialog::postKeyReturn() {
void tst_QFontDialog::defaultOkButton()
{
#ifdef Q_OS_MAC
QSKIP("Test hangs on Mac OS X, see QTBUG-24321");
#endif
bool ok = false;
QTimer::singleShot(2000, this, SLOT(postKeyReturn()));
QFontDialog::getFont(&ok);
@ -123,6 +126,9 @@ void tst_QFontDialog::defaultOkButton()
void tst_QFontDialog::setFont()
{
#ifdef Q_OS_MAC
QSKIP("Test hangs on Mac OS X, see QTBUG-24321");
#endif
/* The font should be the same before as it is after if nothing changed
while the font dialog was open.
Task #27662
@ -154,6 +160,10 @@ class FriendlyFontDialog : public QFontDialog
void tst_QFontDialog::task256466_wrongStyle()
{
#ifdef Q_OS_MAC
QSKIP("Test crashes on Mac OS X, see QTBUG-24321");
#endif
QFontDatabase fdb;
FriendlyFontDialog dialog;
QListView *familyList = reinterpret_cast<QListView*>(dialog.d_func()->familyList);