aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2011-11-17 13:13:05 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-18 06:47:38 +0100
commite20649395615a3d2548a6845330065a8b09436c7 (patch)
tree794ab8449363e62a61804e0f5f4cb40d86862279 /tests/auto/declarative
parentb811bd2f2d4d412f4fed8e6d716336193df3683e (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/auto/declarative')
-rw-r--r--tests/auto/declarative/qquicktext/tst_qquicktext.cpp3
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);