@@ -314,6 +314,23 @@ Item {
314314 tryCompare(app, "orientation", Qt.LandscapeOrientation);
315315 }
316316
317+ function test_backgroundClickCancelsSpread() {
318+ addApps(3);
319+
320+ var focusedAppId = ApplicationManager.focusedApplicationId;
321+
322+ goToSpread();
323+
324+ mouseClick(phoneStage, units.gu(1), units.gu(1));
325+
326+ // Make sure the spread is in the idle position
327+ var spreadView = findChild(phoneStage, "spreadView");
328+ tryCompare(spreadView, "contentX", -spreadView.shift);
329+
330+ // Make sure the same app is still focused
331+ compare(focusedAppId, ApplicationManager.focusedApplicationId);
332+ }
333+
317334 function cleanup() {
318335 while (ApplicationManager.count > 1) {
319336 var oldCount = ApplicationManager.count;