on xenial help sign in
Fix PreviewTextSummary tests
commitc3861582a04fbaff325c6171e808e8a81d8862d4 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateMon 17 Oct 2016, 11:02 (10 years ago) parent0879bd5
1 file changed+2−2
tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml+2−2
tests/qmltests/Dash/Previews/tst_PreviewTextSummary.qml+2−2
@@ -64,7 +64,7 @@ Rectangle {
6464 function test_optional_title() {
6565 // verify titleLabel is visible and textLabel is anchored below it
6666 compare(titleLabel.visible, true)
67− tryCompare(textLabel, "y", titleLabel.height)
67+ tryCompare(textLabel, "y", titleLabel.height + textLabel.anchors.topMargin)
6868
6969 // verify titleLabel disappears and textLabel moves up
7070 previewTextSummary.widgetData = widgetDataNoTitle
@@ -81,7 +81,7 @@ Rectangle {
8181 previewTextSummary.widgetData = widgetDataShortText
8282 verify(textLabel.lineCount <= textLabel.maximumCollapsedLineCount)
8383 tryCompare(textLabel, "height", textLabel.contentHeight)
84− tryCompare(previewTextSummary, "height", titleLabel.height + textLabel.height)
84+ tryCompare(previewTextSummary, "height", titleLabel.height + textLabel.height + textLabel.anchors.topMargin)
8585 }
8686 }
8787}