on xenial help sign in
stabilize, fix keyboard navigation in tryLauncher
commit6ff630196da7ebe2650b6ed23edd9b9a46cf6c95 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 7 Dec 2015, 22:08 (11 years ago) parent2ce2861
1 file changed+5−4
tests/qmltests/Launcher/tst_Launcher.qml+5−4
tests/qmltests/Launcher/tst_Launcher.qml+5−4
@@ -106,7 +106,10 @@ Item {
106106
107107 Button {
108108 text: "open for kbd navigation"
109− onClicked: launcherLoader.item.openForKeyboardNavigation()
109+ onClicked: {
110+ launcherLoader.item.openForKeyboardNavigation()
111+ launcherLoader.item.forceActiveFocus();// = true
112+ }
110113 Layout.fillWidth: true
111114 }
112115
@@ -288,11 +291,8 @@ Item {
288291
289292 dragLauncherIntoView()
290293
291− wait(1000)
292−
293294 // tapping on the center of the screen should dismiss the launcher
294295 mouseClick(launcher, panel.width + units.gu(5), launcher.height / 2)
295− wait(1000)
296296
297297 // should eventually get fully retracted (hidden)
298298 tryCompare(panel, "x", -launcher.panelWidth, 2000)
@@ -962,6 +962,7 @@ Item {
962962 assertFocusOnIndex(last);
963963
964964 keyClick(Qt.Key_Down);
965+ waitForRendering(launcher);
965966 keyClick(Qt.Key_Down);
966967 assertFocusOnIndex(0); // Back to Top
967968