on xenial help sign in
Test the focus fence in the shutdown dialog
8560ba4Albert Astals Cid
tests/qmltests/tst_OrientedShell.qml+20
@@ -1553,5 +1553,25 @@ Rectangle {
1553 verify(surface);
1553 verify(surface);
1554 return surface.activeFocus;
1554 return surface.activeFocus;
1555 }
1555 }
1556+
1557+ function test_tabCyclyingInShutdownDialog() {
1558+ loadShell("mako");
1559+
1560+ testCase.showPowerDialog();
1561+
1562+ var dialogs = findChild(orientedShell, "dialogs");
1563+ var buttons = findChildsByType(dialogs, "Button");
1564+
1565+ tryCompare(buttons[0], "activeFocus", true);
1566+
1567+ keyClick(Qt.Key_Tab);
1568+ tryCompare(buttons[1], "activeFocus", true);
1569+
1570+ keyClick(Qt.Key_Tab);
1571+ tryCompare(buttons[2], "activeFocus", true);
1572+
1573+ keyClick(Qt.Key_Tab);
1574+ tryCompare(buttons[0], "activeFocus", true);
1575+ }
1556 }
1576 }
1557}
1577}