@@ -320,12 +320,15 @@ PanelTest {
320320 tryCompare(panel.indicators, "fullyOpened", true);
321321 }
322322
323− function pullDownApplicationsMenu() {
323+ function pullDownApplicationsMenu(xPos) {
324324 var showDragHandle = findChild(panel.applicationMenus, "showDragHandle");
325+ if (xPos === undefined) {
326+ xPos = showDragHandle.width / 2;
327+ }
325328 touchFlick(showDragHandle,
326− showDragHandle.width / 2,
329+ xPos,
327330 showDragHandle.height / 2,
328− showDragHandle.width / 2,
331+ xPos,
329332 showDragHandle.height / 2 + (showDragHandle.autoCompleteDragThreshold * 1.1));
330333 tryCompare(panel.applicationMenus, "fullyOpened", true);
331334 }
@@ -853,7 +856,7 @@ PanelTest {
853856 var indicatorsBar = findChild(panel.applicationMenus, "indicatorsBar");
854857
855858 PanelState.title = "Fake Title"
856− pullDownApplicationsMenu();
859+ pullDownApplicationsMenu(0 /*xPos*/);
857860 compare(aboutToShowCalledSpy.count, 1);
858861
859862 keyClick(Qt.Key_Right);
@@ -886,7 +889,7 @@ PanelTest {
886889 var indicatorsBar = findChild(panel.applicationMenus, "indicatorsBar");
887890
888891 PanelState.title = "Fake Title"
889− pullDownApplicationsMenu();
892+ pullDownApplicationsMenu(0 /*xPos*/);
890893
891894 tryCompare(indicatorsBar, "currentItemIndex", 0);
892895