@@ -2427,5 +2427,34 @@ Rectangle {
2427 ApplicationManager.requestFocusApplication("calendar-app");
2427 ApplicationManager.requestFocusApplication("calendar-app");
2428 tryCompare(app2Surface, "keymap", "fr");
2428 tryCompare(app2Surface, "keymap", "fr");
2431+ function test_closeFocusedDelegate_data() {
2435+ { tag: "desktop" },
2439+ function test_closeFocusedDelegate(data) {
2440+ loadShell(data.tag);
2441+ shell.usageScenario = data.tag;
2442+ waitForRendering(shell);
2443+ swipeAwayGreeter();
2445+ var app2SurfaceId = topLevelSurfaceList.nextId;
2446+ var app2 = ApplicationManager.startApplication("calendar-app");
2447+ waitUntilAppWindowIsFullyLoaded(app2SurfaceId);
2449+ var app1SurfaceId = topLevelSurfaceList.nextId;
2450+ var app1 = ApplicationManager.startApplication("dialer-app")
2451+ waitUntilAppWindowIsFullyLoaded(app1SurfaceId);
2453+ var countBeforeClose = topLevelSurfaceList.count;
2455+ keyClick(Qt.Key_F4, Qt.AltModifier);
2457+ tryCompare(topLevelSurfaceList, "count", countBeforeClose - 1);