diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2011-11-17 13:13:05 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-18 06:47:38 +0100 |
commit | e20649395615a3d2548a6845330065a8b09436c7 (patch) | |
tree | 794ab8449363e62a61804e0f5f4cb40d86862279 /tests | |
parent | b811bd2f2d4d412f4fed8e6d716336193df3683e (diff) |
Fix tst_qquicktext autotest
Task-number: QTBUG-21009
Change-Id: I3dea72318b7b6040ddd906a6e870389754d4d750
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qquicktext/tst_qquicktext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/declarative/qquicktext/tst_qquicktext.cpp b/tests/auto/declarative/qquicktext/tst_qquicktext.cpp index a8852fbc9f..88ac3126d3 100644 --- a/tests/auto/declarative/qquicktext/tst_qquicktext.cpp +++ b/tests/auto/declarative/qquicktext/tst_qquicktext.cpp @@ -1334,8 +1334,7 @@ void tst_qquicktext::lineHeight() qreal h = myText->height(); myText->setLineHeight(1.5); - QEXPECT_FAIL("", "QTBUG-21009 fails", Continue); - QVERIFY(myText->height() == h * 1.5); + QVERIFY(myText->height() == qCeil(h * 1.5)); myText->setLineHeightMode(QQuickText::FixedHeight); myText->setLineHeight(20); |