@@ -19,7 +19,7 @@ import QtTest 1.0
19import Unity.Test 0.1 as UT
19import Unity.Test 0.1 as UT
20import ".."
20import ".."
21import "../../../qml/Components"
21import "../../../qml/Components"
22−import "../../../qml/Stages"
22+import "../../../qml/Stage"
23import Ubuntu.Components 1.3
23import Ubuntu.Components 1.3
24import Unity.Application 0.1
24import Unity.Application 0.1
25import WindowManager 0.1
25import WindowManager 0.1
@@ -31,7 +31,7 @@ Item {
32 property var greeter: { fullyShown: true }
32 property var greeter: { fullyShown: true }
34− PhoneStage {
34+ Stage {
35 id: phoneStage
35 id: phoneStage
36 anchors { fill: parent; rightMargin: units.gu(30) }
36 anchors { fill: parent; rightMargin: units.gu(30) }
37 focus: true
37 focus: true
@@ -41,6 +41,7 @@ Item {
41 shellOrientation: Qt.PortraitOrientation
41 shellOrientation: Qt.PortraitOrientation
42 orientations: Orientations {}
42 orientations: Orientations {}
43 applicationManager: ApplicationManager
43 applicationManager: ApplicationManager
44 topLevelSurfaceList: TopLevelSurfaceList {
45 topLevelSurfaceList: TopLevelSurfaceList {
45 id: topLevelSurfaceList
46 id: topLevelSurfaceList
46 applicationsModel: ApplicationManager
47 applicationsModel: ApplicationManager
@@ -85,7 +86,7 @@ Item {
85 when: windowShown
86 when: windowShown
87 function findAppWindowForSurfaceId(surfaceId) {
88 function findAppWindowForSurfaceId(surfaceId) {
88− var delegateObjectName = "spreadDelegate_" + surfaceId;
89+ var delegateObjectName = "appDelegate_" + surfaceId;
89 var spreadDelegate = findChild(phoneStage, delegateObjectName);
90 var spreadDelegate = findChild(phoneStage, delegateObjectName);
90 if (!spreadDelegate) {
91 if (!spreadDelegate) {
91 console.warn("Failed to find " + delegateObjectName + " in phoneStage ("+phoneStage+")");
92 console.warn("Failed to find " + delegateObjectName + " in phoneStage ("+phoneStage+")");
@@ -111,8 +112,6 @@ Item {
111 var appSurfaceId = topLevelSurfaceList.nextId;
112 var appSurfaceId = topLevelSurfaceList.nextId;
112 var app = ApplicationManager.startApplication(ApplicationManager.availableApplications[ApplicationManager.count])
113 var app = ApplicationManager.startApplication(ApplicationManager.availableApplications[ApplicationManager.count])
113 tryCompare(app, "state", ApplicationInfoInterface.Running)
114 tryCompare(app, "state", ApplicationInfoInterface.Running)
114− var spreadView = findChild(phoneStage, "spreadView");
115− tryCompare(spreadView, "contentX", -spreadView.shift);
116 waitUntilAppSurfaceShowsUp(appSurfaceId);
115 waitUntilAppSurfaceShowsUp(appSurfaceId);
117 waitForRendering(phoneStage)
116 waitForRendering(phoneStage)