@@ -53,6 +53,9 @@ IndicatorTest {
53 openedHeight: parent.height
53 openedHeight: parent.height
54 indicatorsModel: root.indicatorsModel
54 indicatorsModel: root.indicatorsModel
55 shown: false
55 shown: false
57+ // no vertical movement allowed while dragging
58+ verticalVelocityThreashold: 0
@@ -120,12 +123,10 @@ IndicatorTest {
121 function test_progress_changes_state_to_reveal() {
124 function test_progress_changes_state_to_reveal() {
122 indicatorsMenu.height = indicatorsMenu.openedHeight / 2;
125 indicatorsMenu.height = indicatorsMenu.openedHeight / 2;
123− compare(indicatorsMenu.state, "reveal", "Indicators should be locked when fully opened.");
126+ compare(indicatorsMenu.state, "reveal", "Indicators should be revealing when partially opened.");
126− function test_progress_changes_state_to_locked() {
127 indicatorsMenu.height = indicatorsMenu.openedHeight;
128 indicatorsMenu.height = indicatorsMenu.openedHeight;
128− compare(indicatorsMenu.state, "locked", "Indicators should be locked when fully opened.");
129+ compare(indicatorsMenu.state, "reveal", "Indicators should still be revealing when fully opened.");
131 function test_open_state() {
132 function test_open_state() {
@@ -218,10 +219,14 @@ IndicatorTest {
218 touchFlick(indicatorsMenu,
219 touchFlick(indicatorsMenu,
219 firstItemMappedPosition.x, indicatorsMenu.minimizedPanelHeight * 2,
220 firstItemMappedPosition.x, indicatorsMenu.minimizedPanelHeight * 2,
220 nextItemMappedPosition.x, indicatorsMenu.openedHeight / 3,
221 nextItemMappedPosition.x, indicatorsMenu.openedHeight / 3,
221− false /* beginTouch */, true /* endTouch */,
222+ false /* beginTouch */, false /* endTouch */,
222− units.gu(5) /* speed */, 10 /* iterations */); // more samples needed for accurate velocity
223+ units.gu(50) /* speed */, 5 /* iterations */); // more samples needed for accurate velocity
224 compare(indicatorItemRow.currentItem, firstItem, "First indicator should still be the current item");
225 compare(indicatorItemRow.currentItem, firstItem, "First indicator should still be the current item");
226+ // after waiting in the same spot with touch down, it should update to the next item.
227+ tryCompare(indicatorItemRow, "currentItem", nextItem);
229+ touchRelease(indicatorsMenu, nextItemMappedPosition.x, indicatorsMenu.openedHeight / 3);