test: mark expected failures in tst_qglyphrun for qpa

Task-number: QTBUG-20760
Change-Id: Id046abfc8dcce2c6d068e5febf8c2b8777b50f53
Reviewed-on: http://codereview.qt.nokia.com/2657
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
This commit is contained in:
Rohan McGovern 2011-08-05 14:17:30 +10:00 committed by Qt by Nokia
parent 791bcba203
commit b4cc8fcbdd

View File

@ -93,6 +93,10 @@ void tst_QGlyphRun::initTestCase()
m_testFont = QFont("QtsSpecialTestFont");
#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-20760 fails on qpa", Continue);
#endif
QCOMPARE(QFontInfo(m_testFont).family(), QString::fromLatin1("QtsSpecialTestFont"));
}
@ -237,6 +241,11 @@ void tst_QGlyphRun::textLayoutGlyphIndexes()
layout.endLayout();
QList<QGlyphRun> listOfGlyphs = layout.glyphRuns();
#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-20760 fails on qpa", Abort);
#endif
QCOMPARE(listOfGlyphs.size(), 1);
QGlyphRun glyphs = listOfGlyphs.at(0);
@ -283,6 +292,10 @@ void tst_QGlyphRun::drawExistingGlyphs()
drawGlyphs.save("drawExistingGlyphs_drawGlyphIndexes.png");
#endif
#ifdef Q_WS_QPA
QEXPECT_FAIL("", "QTBUG-20760 fails on qpa", Continue);
#endif
QCOMPARE(textLayoutDraw, drawGlyphs);
}