Expect fail font family mismatch in the right place

This fixes 4ca4fb93f6
where the fix was right, just in the wrong place.

Change-Id: I3cde24624e3789870f1c16ccb92f78f7fc567fd5
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
Frederik Gladhorn 2013-08-07 13:14:32 +02:00 committed by The Qt Project
parent 1142dde83e
commit c98943b4cd

View File

@ -667,15 +667,6 @@ void tst_QFont::defaultFamily_data()
void tst_QFont::defaultFamily()
{
#if defined(Q_OS_MAC)
if (QSysInfo::MacintoshVersion == QSysInfo::MV_10_8) {
QEXPECT_FAIL("serif", "See QTBUG-32834", Continue);
QEXPECT_FAIL("monospace", "See QTBUG-32834", Continue);
QEXPECT_FAIL("cursive", "See QTBUG-32834", Continue);
QEXPECT_FAIL("fantasy", "See QTBUG-32834", Continue);
}
#endif
QFETCH(QFont::StyleHint, styleHint);
QFETCH(QStringList, acceptableFamilies);
@ -694,6 +685,15 @@ void tst_QFont::defaultFamily()
break;
}
}
#if defined(Q_OS_MAC)
if (QSysInfo::MacintoshVersion == QSysInfo::MV_10_8) {
QEXPECT_FAIL("serif", "See QTBUG-32834", Continue);
QEXPECT_FAIL("monospace", "See QTBUG-32834", Continue);
QEXPECT_FAIL("cursive", "See QTBUG-32834", Continue);
QEXPECT_FAIL("fantasy", "See QTBUG-32834", Continue);
}
#endif
QVERIFY2(isAcceptable, msgNotAcceptableFont(familyForHint, acceptableFamilies));
}