diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-09 12:34:06 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-09 12:35:40 (GMT) |
commit | 11c45476c44cc0a4391442eec5ee463d3f028c81 (patch) | |
tree | 6d4e17fdbae7a50cfe166a4b19879c78723e752b /tests/auto/qfontmetrics | |
parent | 21cf7b4c4317421da4b7ba63473b639e33386ffc (diff) | |
download | Qt-11c45476c44cc0a4391442eec5ee463d3f028c81.zip Qt-11c45476c44cc0a4391442eec5ee463d3f028c81.tar.gz Qt-11c45476c44cc0a4391442eec5ee463d3f028c81.tar.bz2 |
Stabilize QFontMetrics test
Diffstat (limited to 'tests/auto/qfontmetrics')
-rw-r--r-- | tests/auto/qfontmetrics/tst_qfontmetrics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qfontmetrics/tst_qfontmetrics.cpp b/tests/auto/qfontmetrics/tst_qfontmetrics.cpp index e33c938..1511d33 100644 --- a/tests/auto/qfontmetrics/tst_qfontmetrics.cpp +++ b/tests/auto/qfontmetrics/tst_qfontmetrics.cpp @@ -213,10 +213,10 @@ void tst_QFontMetrics::elidedMultiLength() int width_long = fm.width(text1_long); QCOMPARE(fm.elidedText(text1,Qt::ElideRight, 8000), text1_long); QCOMPARE(fm.elidedText(text1,Qt::ElideRight, width_long + 1), text1_long); - QCOMPARE(fm.elidedText(text1,Qt::ElideRight, width_long - 1), text1_short); + QCOMPARE(fm.elidedText(text1,Qt::ElideRight, width_long - 2), text1_short); int width_short = fm.width(text1_short); QCOMPARE(fm.elidedText(text1,Qt::ElideRight, width_short + 1), text1_short); - QCOMPARE(fm.elidedText(text1,Qt::ElideRight, width_short - 1), text1_small); + QCOMPARE(fm.elidedText(text1,Qt::ElideRight, width_short - 2), text1_small); // Not even wide enough for "small" - should use ellipsis QChar ellipsisChar(0x2026); |