on xenial help sign in
Wait for the height animation to finish
55cdd2bAlbert Astals
tests/qmltests/Dash/Previews/tst_PreviewActions.qml+2
@@ -129,10 +129,12 @@ Rectangle {
129
129
130 function test_comboButton(data) {
130 function test_comboButton(data) {
131 var button = findChild(root, "moreLessButton");
131 var button = findChild(root, "moreLessButton");
132+ var buttonColumn = findChild(root, "buttonColumn");
132 verify(button != null);
133 verify(button != null);
133 var twoActionsY = twoActions.y
134 var twoActionsY = twoActions.y
134 mouseClick(button, button.width / 2, button.height / 2);
135 mouseClick(button, button.width / 2, button.height / 2);
135 tryCompareFunction(function () { return twoActions.y <= twoActionsY; }, false);
136 tryCompareFunction(function () { return twoActions.y <= twoActionsY; }, false);
137+ tryCompare(buttonColumn, "height", buttonColumn.implicitHeight);
136 checkButtonPressSignal(buttonAndCombo, data.id, data.buttonNumber);
138 checkButtonPressSignal(buttonAndCombo, data.id, data.buttonNumber);
137 mouseClick(button, button.width / 2, button.height / 2);
139 mouseClick(button, button.width / 2, button.height / 2);
138 tryCompare(twoActions, "y", twoActionsY);
140 tryCompare(twoActions, "y", twoActionsY);