From b4cc8fcbdd5491e975583e813e31850e525e4570 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Fri, 5 Aug 2011 14:17:30 +1000 Subject: [PATCH] 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 Reviewed-by: Sergio Ahumada --- tests/auto/qglyphrun/tst_qglyphrun.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/auto/qglyphrun/tst_qglyphrun.cpp b/tests/auto/qglyphrun/tst_qglyphrun.cpp index a18a2ac8ddd..a5a5cd19cc3 100644 --- a/tests/auto/qglyphrun/tst_qglyphrun.cpp +++ b/tests/auto/qglyphrun/tst_qglyphrun.cpp @@ -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 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); }