@@ -314,13 +314,20 @@ Item {
316 function test_backgroundClickCancelsSpread() {
316 function test_backgroundClickCancelsSpread() {
317− addApps(3)
317+ addApps(3);
319+ var focusedAppId = ApplicationManager.focusedApplicationId;
318 goToSpread();
321 goToSpread();
320− mouseClick(phoneStage, units.gu(1), units.gu(1))
323+ mouseClick(phoneStage, units.gu(1), units.gu(1));
325+ // Make sure the spread is in the idle position
322 var spreadView = findChild(phoneStage, "spreadView");
326 var spreadView = findChild(phoneStage, "spreadView");
323− tryCompare(spreadView, "contentX", -spreadView.shift)
327+ tryCompare(spreadView, "contentX", -spreadView.shift);
329+ // Make sure the same app is still focused
330+ compare(focusedAppId, ApplicationManager.focusedApplicationId);
326 function cleanup() {
333 function cleanup() {