diff options
Diffstat (limited to 'tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp')
-rw-r--r-- | tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp b/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp index 2be683ed13..da8ae5606f 100644 --- a/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp +++ b/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp @@ -493,6 +493,9 @@ void tst_QGlyphRun::drawMultiScriptText2() void tst_QGlyphRun::detach() { + +#define ARG(...) __VA_ARGS__ + QGlyphRun glyphs; glyphs.setGlyphIndexes(QList<quint32>() << 1 << 2 << 3); @@ -504,8 +507,10 @@ void tst_QGlyphRun::detach() otherGlyphs.setGlyphIndexes(QList<quint32>() << 4 << 5 << 6); - QCOMPARE(otherGlyphs.glyphIndexes(), QList<quint32>() << 4 << 5 << 6); - QCOMPARE(glyphs.glyphIndexes(), QList<quint32>() << 1 << 2 << 3); + QCOMPARE(otherGlyphs.glyphIndexes(), ARG({4, 5, 6})); + QCOMPARE(glyphs.glyphIndexes(), ARG({1, 2, 3})); + +#undef ARG } void tst_QGlyphRun::drawRightToLeft() |