@@ -496,16 +496,8 @@ Item {
496 function tapOnAppIconInLauncher() {
496 function tapOnAppIconInLauncher() {
497 var launcherPanel = findChild(shell, "launcherPanel");
497 var launcherPanel = findChild(shell, "launcherPanel");
499− // pick the first icon, the one at the bottom.
499+ // pick the first icon, the one at the top.
500 var appIcon = findChild(launcherPanel, "launcherDelegate0")
500 var appIcon = findChild(launcherPanel, "launcherDelegate0")
502− // Swipe upwards over the launcher to ensure that this icon
503− // at the bottom is not folded and faded away.
504− var touchStartX = launcherPanel.width / 2;
505− var touchEndY = launcherPanel.height / 2;
506− touchFlick(launcherPanel, touchStartX, 0, touchStartX, touchEndY);
507− tryCompare(launcherPanel, "moving", false);
509 tap(appIcon, appIcon.width / 2, appIcon.height / 2);
501 tap(appIcon, appIcon.width / 2, appIcon.height / 2);
@@ -753,13 +745,17 @@ Item {
753 dragLauncherIntoView();
745 dragLauncherIntoView();
755 // Emulate a tap with a finger, where the touch position drifts during the tap.
747 // Emulate a tap with a finger, where the touch position drifts during the tap.
748+ // This is to test the touch ownership changes. The tap is happening on the button
749+ // area but then drifting into the left edge drag area. This test makes sure
750+ // the touch ownership stays with the button and doesn't move over to the
751+ // left edge drag area.
757 var buttonShowDashHome = findChild(launcher, "buttonShowDashHome");
753 var buttonShowDashHome = findChild(launcher, "buttonShowDashHome");
758 var startPos = buttonShowDashHome.mapToItem(shell,
754 var startPos = buttonShowDashHome.mapToItem(shell,
759− buttonShowDashHome.width * 0.2,
755+ buttonShowDashHome.width * 0.8,
760 buttonShowDashHome.height * 0.2);
756 buttonShowDashHome.height * 0.2);
761 var endPos = buttonShowDashHome.mapToItem(shell,
757 var endPos = buttonShowDashHome.mapToItem(shell,
762− buttonShowDashHome.width * 0.8,
758+ buttonShowDashHome.width * 0.2,
763 buttonShowDashHome.height * 0.8);
759 buttonShowDashHome.height * 0.8);
764 touchFlick(shell, startPos.x, startPos.y, endPos.x, endPos.y);
760 touchFlick(shell, startPos.x, startPos.y, endPos.x, endPos.y);