@@ -1741,7 +1741,7 @@ Rectangle {
17411741 while (spreadItem.highlightedIndex !== 2 && x <= 4000) {
17421742 x+=10;
17431743 mouseMove(shell, x, y)
1744− wait(1); // spin the loop so bindings get evaluated
1744+ wait(10); // spin the loop so bindings get evaluated
17451745 }
17461746 tryCompare(closeMouseArea, "enabled", true)
17471747
@@ -1772,7 +1772,6 @@ Rectangle {
17721772
17731773 var stage = findChild(shell, "stage");
17741774 var spreadItem = findChild(stage, "spreadItem");
1775−// waitForRendering(spread)
17761775
17771776 var appRepeater = findInvisibleChild(shell, "appRepeater");
17781777 verify(appRepeater !== null);
@@ -1793,7 +1792,7 @@ Rectangle {
17931792 while (spreadItem.highlightedIndex !== 2 && x <= 4000) {
17941793 x+=10;
17951794 mouseMove(shell, x, y)
1796− wait(1); // spin the loop so bindings get evaluated
1795+ wait(10); // spin the loop so bindings get evaluated
17971796 }
17981797 tryCompare(decoratedWindow, "showHighlight", true);
17991798
@@ -1811,6 +1810,7 @@ Rectangle {
18111810 loadDesktopShellWithApps()
18121811
18131812 var appRepeater = findInvisibleChild(shell, "appRepeater");
1813+ var launcherPanel = findChild(shell, "launcherPanel");
18141814 verify(appRepeater !== null);
18151815
18161816 keyPress(Qt.Key_Alt);
@@ -1822,22 +1822,14 @@ Rectangle {
18221822 compare(spreadFlickable.contentX, 0);
18231823
18241824 // Move the mouse to the right and make sure it scrolls the Flickable
1825− var x = 0;
1826− var y = shell.height * .5;
1827− mouseMove(shell, x, y)
1828− while (x <= shell.width) {
1829− x+=10;
1830− mouseMove(shell, x, y);
1831− wait(1); // spin the loop so bindings get evaluated
1832− }
1825+ var shellLeft = launcherPanel.width + 5;
1826+ var shellRight = shell.width - 5;
1827+ var halfShellHeight = shell.height / 2;
1828+ mouseFlick(shell, shellLeft, halfShellHeight, shellRight, halfShellHeight, false, false, units.gu(100));
18331829 tryCompare(spreadFlickable, "contentX", spreadFlickable.contentWidth - spreadFlickable.width);
18341830
18351831 // And turn around
1836− while (x > 0) {
1837− x-=10;
1838− mouseMove(shell, x, y)
1839− wait(1); // spin the loop so bindings get evaluated
1840− }
1832+ mouseFlick(shell, shellRight, halfShellHeight, shellLeft, halfShellHeight, false, false, units.gu(100));
18411833 tryCompare(spreadFlickable, "contentX", 0);
18421834
18431835 keyRelease(Qt.Key_Alt);