diff options
author | Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> | 2016-06-17 14:42:37 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> | 2016-06-18 13:44:15 +0000 |
commit | c8241e8551b9491081486cc98936ad5ad1824a1e (patch) | |
tree | 21643451782ed31c0cfff41275f6f09313c4f1e4 /tests | |
parent | 1591d0e0f62a48d2ef45cc8af9b5d39158e169d5 (diff) |
qmltest::linecount - adjust text width
With text line width 50 'Hello world!' is split into 2 lines on OS X
10.11 and the test expectes 3 lines, let's try something less than 50
(44).
Task-number: QTBUG-53778
Change-Id: Id3254e9d89e7b41498ff8735eff97f0317ae9677
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qmltest/text/tst_text.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qmltest/text/tst_text.qml b/tests/auto/qmltest/text/tst_text.qml index 691a4838cd..d2899cfb74 100644 --- a/tests/auto/qmltest/text/tst_text.qml +++ b/tests/auto/qmltest/text/tst_text.qml @@ -118,9 +118,10 @@ Item { compare(txtlinecount.lineCount, 2) txtlinecount.text = txtlinecount.third; compare(txtlinecount.lineCount, 3) + console.log(txtlinecount.width) txtlinecount.text = txtlinecount.first; compare(txtlinecount.lineCount, 1) - txtlinecount.width = 50; + txtlinecount.width = 44; compare(txtlinecount.lineCount, 3) } function test_linecounts() { |