@@ -50,6 +50,8 @@ Rectangle {
50 shellLoader.active = true;
50 shellLoader.active = true;
53+ property var shell: shellLoader.item ? shellLoader.item : null
54 id: shellContainer
56 id: shellContainer
55 anchors.left: root.left
57 anchors.left: root.left
@@ -302,7 +304,7 @@ Rectangle {
304 Repeater {
306 Repeater {
305− id: appRepeater
307+ id: appCheckBoxRepeater
306 model: ApplicationManager.availableApplications
308 model: ApplicationManager.availableApplications
307 ApplicationCheckBox {
309 ApplicationCheckBox {
308 appId: modelData
310 appId: modelData
@@ -1707,11 +1709,8 @@ Rectangle {
1707 function test_altBackTabNavigation() {
1709 function test_altBackTabNavigation() {
1708 loadDesktopShellWithApps();
1710 loadDesktopShellWithApps();
1711 var spreadItem = findChild(shell, "spreadItem");
1712 var spreadItem = findChild(shell, "spreadItem");
1712− print("starting verify")
1713 verify(spreadItem !== null);
1713 verify(spreadItem !== null);
1714− print("verify done")
1716 keyPress(Qt.Key_Alt)
1715 keyPress(Qt.Key_Alt)
1717 keyClick(Qt.Key_Tab);
1716 keyClick(Qt.Key_Tab);
@@ -1769,21 +1768,24 @@ Rectangle {
1769 function test_closeFromSpread() {
1768 function test_closeFromSpread() {
1770 loadDesktopShellWithApps()
1769 loadDesktopShellWithApps()
1772− var spreadRepeater = findInvisibleChild(shell, "spreadRepeater");
1771+ var appRepeater = findInvisibleChild(shell, "appRepeater");
1772+ verify(appRepeater !== null);
1774+ var spreadItem = findChild(shell, "spreadItem");
1773− verify(spreadRepeater !== null);
1775+ verify(spreadItem !== null);
1775 keyPress(Qt.Key_Alt)
1777 keyPress(Qt.Key_Alt)
1776 keyClick(Qt.Key_Tab);
1778 keyClick(Qt.Key_Tab);
1778 var surfaceId = topLevelSurfaceList.idAt(2);
1780 var surfaceId = topLevelSurfaceList.idAt(2);
1779− var spreadDelegate2 = spreadRepeater.itemAt(2);
1781+ var spreadDelegate2 = appRepeater.itemAt(2);
1780 var closeMouseArea = findChild(spreadDelegate2, "closeMouseArea");
1782 var closeMouseArea = findChild(spreadDelegate2, "closeMouseArea");
1782 // Move the mosue over tile 2 and verify the close button becomes visible
1784 // Move the mosue over tile 2 and verify the close button becomes visible
1783 var x = 0;
1785 var x = 0;
1784 var y = shell.height * .5;
1786 var y = shell.height * .5;
1785 mouseMove(shell, x, y)
1787 mouseMove(shell, x, y)
1786− while (spreadRepeater.highlightedIndex !== 2 && x <= 4000) {
1788+ while (spreadItem.highlightedIndex !== 2 && x <= 4000) {
1788 mouseMove(shell, x, y)
1790 mouseMove(shell, x, y)
1789 wait(0); // spin the loop so bindings get evaluated
1791 wait(0); // spin the loop so bindings get evaluated