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>
This commit is contained in:
parent
1591d0e0f6
commit
c8241e8551
|
@ -118,9 +118,10 @@ Item {
|
||||||
compare(txtlinecount.lineCount, 2)
|
compare(txtlinecount.lineCount, 2)
|
||||||
txtlinecount.text = txtlinecount.third;
|
txtlinecount.text = txtlinecount.third;
|
||||||
compare(txtlinecount.lineCount, 3)
|
compare(txtlinecount.lineCount, 3)
|
||||||
|
console.log(txtlinecount.width)
|
||||||
txtlinecount.text = txtlinecount.first;
|
txtlinecount.text = txtlinecount.first;
|
||||||
compare(txtlinecount.lineCount, 1)
|
compare(txtlinecount.lineCount, 1)
|
||||||
txtlinecount.width = 50;
|
txtlinecount.width = 44;
|
||||||
compare(txtlinecount.lineCount, 3)
|
compare(txtlinecount.lineCount, 3)
|
||||||
}
|
}
|
||||||
function test_linecounts() {
|
function test_linecounts() {
|
||||||
|
|
Loading…
Reference in New Issue