@@ -33,7 +33,6 @@ Item {
33 PhoneStage {
33 PhoneStage {
34 id: phoneStage
34 id: phoneStage
35 anchors { fill: parent; rightMargin: units.gu(30) }
35 anchors { fill: parent; rightMargin: units.gu(30) }
37 dragAreaWidth: units.gu(2)
36 dragAreaWidth: units.gu(2)
@@ -74,11 +73,8 @@ Item {
74 for (var i = 0; i < count; i++) {
73 for (var i = 0; i < count; i++) {
75 var app = ApplicationManager.startApplication(ApplicationManager.availableApplications()[ApplicationManager.count])
74 var app = ApplicationManager.startApplication(ApplicationManager.availableApplications()[ApplicationManager.count])
76 tryCompare(app, "state", ApplicationInfoInterface.Running)
75 tryCompare(app, "state", ApplicationInfoInterface.Running)
77− // Fixme: Right now there is a timeout in the PhoneStage that displays a white splash
76+ var spreadView = findChild(phoneStage, "spreadView");
78− // screen rectangle when an app starts. This is because we don't yet have a way of
77+ tryCompare(spreadView, "contentX", -spreadView.shift);
79− // knowing when an app has finished launching. That workaround and this wait() should
80− // go away at some point and the app's state only changing to Running when ready for real.
82 waitForRendering(phoneStage)
78 waitForRendering(phoneStage)
@@ -114,8 +110,6 @@ Item {
114 true /* beginTouch */, true /* endTouch */, units.gu(10), 50);
110 true /* beginTouch */, true /* endTouch */, units.gu(10), 50);
116 tryCompare(ApplicationManager, "focusedApplicationId", activeApp.appId)
112 tryCompare(ApplicationManager, "focusedApplicationId", activeApp.appId)
118− tryCompare(phoneStage, "painting", false);
121 function test_enterSpread_data() {
115 function test_enterSpread_data() {
@@ -165,7 +159,6 @@ Item {
165 mouseClick(app2, units.gu(1), units.gu(1));
159 mouseClick(app2, units.gu(1), units.gu(1));
168− tryCompare(phoneStage, "painting", false);
169 tryCompare(ApplicationManager, "focusedApplicationId", newFocusedApp.appId);
162 tryCompare(ApplicationManager, "focusedApplicationId", newFocusedApp.appId);
@@ -212,16 +205,6 @@ Item {
212 tryCompare(spreadView, "phase", 0);
205 tryCompare(spreadView, "phase", 0);
215− function test_animateAppStartup() {
216− compare(phoneStage.painting, false);
218− tryCompare(phoneStage, "painting", true);
219− tryCompare(phoneStage, "painting", false);
221− tryCompare(phoneStage, "painting", true);
222− tryCompare(phoneStage, "painting", false);
225 function test_select_data() {
208 function test_select_data() {
227 { tag: "0", index: 0 },
210 { tag: "0", index: 0 },
@@ -238,9 +221,11 @@ Item {
239 goToSpread();
222 goToSpread();
241 phoneStage.select(selectedApp.appId);
225 phoneStage.select(selectedApp.appId);
243− tryCompare(phoneStage, "painting", false);
227+ tryCompare(spreadView, "contentX", -spreadView.shift);
244 compare(ApplicationManager.focusedApplicationId, selectedApp.appId);
229 compare(ApplicationManager.focusedApplicationId, selectedApp.appId);