@@ -75,6 +75,7 @@ Rectangle {
76 function test_see_more() {
76 function test_see_more() {
77 var seeMore = findChild(previewTextSummary, "seeMore")
77 var seeMore = findChild(previewTextSummary, "seeMore")
78+ var seeMoreContainer = findChild(previewTextSummary, "seeMoreContainer")
79 // when it's more than textLabel.maximumCollapsedLineCount lines of text, show SeeMore component
80 // when it's more than textLabel.maximumCollapsedLineCount lines of text, show SeeMore component
80 verify(textLabel.lineCount > textLabel.maximumCollapsedLineCount)
81 verify(textLabel.lineCount > textLabel.maximumCollapsedLineCount)
@@ -94,6 +95,7 @@ Rectangle {
94 // text SeeMore automatic hiding
95 // text SeeMore automatic hiding
95 previewTextSummary.widgetData = widgetDataShortText
96 previewTextSummary.widgetData = widgetDataShortText
96 verify(textLabel.lineCount <= textLabel.maximumCollapsedLineCount)
97 verify(textLabel.lineCount <= textLabel.maximumCollapsedLineCount)
98+ compare(seeMoreContainer.visible, false)
97 compare(seeMore.visible, false)
99 compare(seeMore.visible, false)
98 tryCompare(textLabel, "height", textLabel.contentHeight)
100 tryCompare(textLabel, "height", textLabel.contentHeight)