on xenial help sign in
Fix test
b61cb51Albert Astals Cid
tests/qmltests/Panel/tst_IndicatorsMenu.qml+6
@@ -147,11 +147,17 @@ IndicatorTest {
147 }
147 }
148
148
149 function test_progress_changes_state_to_reveal() {
149 function test_progress_changes_state_to_reveal() {
150+ var firstItem = get_indicator_item(0);
151+ var firstItemMappedPosition = indicatorsMenu.mapFromItem(firstItem, firstItem.width/2, firstItem.height/2);
152+ touchPress(indicatorsMenu, firstItemMappedPosition.x, indicatorsMenu.minimizedPanelHeight / 2);
153+
150 indicatorsMenu.height = indicatorsMenu.openedHeight / 2;
154 indicatorsMenu.height = indicatorsMenu.openedHeight / 2;
151 compare(indicatorsMenu.state, "reveal", "Indicators should be revealing when partially opened.");
155 compare(indicatorsMenu.state, "reveal", "Indicators should be revealing when partially opened.");
152
156
153 indicatorsMenu.height = indicatorsMenu.openedHeight;
157 indicatorsMenu.height = indicatorsMenu.openedHeight;
154 compare(indicatorsMenu.state, "reveal", "Indicators should still be revealing when fully opened.");
158 compare(indicatorsMenu.state, "reveal", "Indicators should still be revealing when fully opened.");
159+
160+ touchRelease(indicatorsMenu, firstItemMappedPosition.x, indicatorsMenu.minimizedPanelHeight / 2);
155 }
161 }
156
162
157 function test_open_state() {
163 function test_open_state() {