on xenial help sign in
More stubborn flick to the end
commit567453a84f9eff6f1f3bb4e3c79c91bb4d4902b1 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 10 Mar 2015, 10:24 (12 years ago) parentc5f7c0a
1 file changed+6−2
tests/qmltests/Dash/Previews/tst_Preview.qml+6−2
tests/qmltests/Dash/Previews/tst_Preview.qml+6−2
@@ -113,9 +113,13 @@ Rectangle {
113113
114114 // Scroll down
115115 var previewListRow0 = findChild(preview, "previewListRow0");
116− touchFlick(preview, preview.width / 2, units.gu(20), preview.width / 2, units.gu(1));
116+ var i = 0;
117+ while (i < 5 && !previewListRow0.atYEnd) {
118+ touchFlick(preview, preview.width / 2, units.gu(20), preview.width / 2, units.gu(1));
119+ tryCompare(previewListRow0, "moving", false);
120+ ++i;
121+ }
117122 tryCompare(previewListRow0, "atYEnd", true);
118− tryCompare(previewListRow0, "moving", false);
119123
120124 // Click on the combo
121125 var widget = findChild(preview, "widget-21");