@@ -1577,6 +1577,24 @@ Rectangle {
15771577
15781578 keyClick(Qt.Key_Tab);
15791579 tryCompare(buttons[0], "activeFocus", true);
1580+
1581+ keyClick(Qt.Key_Escape);
1582+
1583+ var dialogLoader = findChild(orientedShell, "dialogLoader");
1584+ tryCompare(dialogLoader, "item", null);
1585+ }
1586+
1587+ function test_escColosesShutdownDialog() {
1588+ loadShell("mako");
1589+
1590+ testCase.showPowerDialog();
1591+
1592+ var dialogLoader = findChild(orientedShell, "dialogLoader");
1593+ tryCompareFunction(function() { return dialogLoader.item !== null }, true);
1594+
1595+ keyClick(Qt.Key_Escape);
1596+
1597+ tryCompare(dialogLoader, "item", null);
15801598 }
15811599 }
15821600}