on xenial help sign in
Make the test work better with different px per gu values
commit0c028e3ffeeaca246952721753be6c0db547ed48 authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 27 Apr 2016, 14:54 (10 years ago) parent8daf35f
1 file changed+3−1
tests/qmltests/Dash/Filters/tst_FilterExpandableWidget.qml+3−1
tests/qmltests/Dash/Filters/tst_FilterExpandableWidget.qml+3−1
@@ -88,9 +88,11 @@ Rectangle {
8888 function test_expandedChanges() {
8989 var expandingItem = findChild(factory, "expandingItem");
9090 verify(!expandingItem.expanded)
91+ compare(expandingItem.height, expandingItem.collapsedHeight)
9192 mouseClick(expandingItem);
9293 verify(expandingItem.expanded)
93− tryCompare(expandingItem, "height", units.gu(15))
94+ tryCompare(expandingItem, "height", expandingItem.expandedHeight)
95+ verify(expandingItem.collapsedHeight < expandingItem.expandedHeight / 2);
9496 }
9597
9698 }