on xenial help sign in
Make the test work better with different px per gu values
0c028e3Albert Astals Cid
tests/qmltests/Dash/Filters/tst_FilterExpandableWidget.qml+3−1
@@ -88,9 +88,11 @@ Rectangle {
88 function test_expandedChanges() {
88 function test_expandedChanges() {
89 var expandingItem = findChild(factory, "expandingItem");
89 var expandingItem = findChild(factory, "expandingItem");
90 verify(!expandingItem.expanded)
90 verify(!expandingItem.expanded)
91+ compare(expandingItem.height, expandingItem.collapsedHeight)
91 mouseClick(expandingItem);
92 mouseClick(expandingItem);
92 verify(expandingItem.expanded)
93 verify(expandingItem.expanded)
93− tryCompare(expandingItem, "height", units.gu(15))
94+ tryCompare(expandingItem, "height", expandingItem.expandedHeight)
95+ verify(expandingItem.collapsedHeight < expandingItem.expandedHeight / 2);
94 }
96 }
95
97
96 }
98 }