on xenial help sign in
extend the keymap test with a prompt surface
commit6b1efb3c925535e7a455389538539056fc192c13 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 8 Aug 2016, 15:42 (10 years ago) parent546c8e7
1 file changed+9
tests/qmltests/tst_Shell.qml+9
tests/qmltests/tst_Shell.qml+9
@@ -2429,6 +2429,15 @@ Rectangle {
24292429 // verify the initial keymap of the newly started app is the first one from the list
24302430 tryCompare(appSurface, "keymap", "sk");
24312431
2432+ // try to create a prompt surface, verify it also has the same keymap
2433+ app.promptSurfaceList.createSurface();
2434+ var promptSurface = app.promptSurfaceList.get(0);
2435+ verify(promptSurface);
2436+ tryCompare(appSurface, "keymap", promptSurface.keymap);
2437+ // ... and that the controller's surface keymap is also the same
2438+ tryCompare(MirFocusController.focusedSurface, "keymap", "sk");
2439+ app.promptSurfaceList.get(0).close();
2440+
24322441 // switch to next keymap, should go to "cz+qwerty"
24332442 keyClick(Qt.Key_Space, Qt.MetaModifier);
24342443 tryCompare(appSurface, "keymap", "cz+qwerty");