on xenial help sign in
test both Tab and Down keys
commit1a53504ee0020459ab9c496cf244af9faabdce0d authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 9 Jan 2017, 14:01 (10 years ago) parentdb2571d
1 file changed+11−4
tests/qmltests/tst_OrientedShell.qml+11−4
tests/qmltests/tst_OrientedShell.qml+11−4
@@ -1559,7 +1559,14 @@ Rectangle {
15591559 return surface.activeFocus;
15601560 }
15611561
1562− function test_tabCyclyingInShutdownDialog() {
1562+ function test_tabCyclyingInShutdownDialog_data() {
1563+ return [
1564+ {tag: "TAB", key: Qt.Key_Tab},
1565+ {tag: "DOWN", key: Qt.Key_Down}
1566+ ];
1567+ }
1568+
1569+ function test_tabCyclyingInShutdownDialog(data) {
15631570 loadShell("mako");
15641571
15651572 testCase.showPowerDialog();
@@ -1569,13 +1576,13 @@ Rectangle {
15691576
15701577 tryCompare(buttons[0], "activeFocus", true);
15711578
1572− keyClick(Qt.Key_Tab);
1579+ keyClick(data.key);
15731580 tryCompare(buttons[1], "activeFocus", true);
15741581
1575− keyClick(Qt.Key_Tab);
1582+ keyClick(data.key);
15761583 tryCompare(buttons[2], "activeFocus", true);
15771584
1578− keyClick(Qt.Key_Tab);
1585+ keyClick(data.key);
15791586 tryCompare(buttons[0], "activeFocus", true);
15801587
15811588 keyClick(Qt.Key_Escape);