on xenial help sign in
stabilize, fix keyboard navigation in tryLauncher
6ff6301Michael Zanetti
tests/qmltests/Launcher/tst_Launcher.qml+5−4
@@ -106,7 +106,10 @@ Item {
106
106
107 Button {
107 Button {
108 text: "open for kbd navigation"
108 text: "open for kbd navigation"
109+ onClicked: {
109− onClicked: launcherLoader.item.openForKeyboardNavigation()
110+ launcherLoader.item.openForKeyboardNavigation()
111+ launcherLoader.item.forceActiveFocus();// = true
112+ }
110 Layout.fillWidth: true
113 Layout.fillWidth: true
111 }
114 }
112
115
@@ -288,11 +291,8 @@ Item {
288
291
289 dragLauncherIntoView()
292 dragLauncherIntoView()
290
293
291− wait(1000)
292−
293 // tapping on the center of the screen should dismiss the launcher
294 // tapping on the center of the screen should dismiss the launcher
294 mouseClick(launcher, panel.width + units.gu(5), launcher.height / 2)
295 mouseClick(launcher, panel.width + units.gu(5), launcher.height / 2)
295− wait(1000)
296
296
297 // should eventually get fully retracted (hidden)
297 // should eventually get fully retracted (hidden)
298 tryCompare(panel, "x", -launcher.panelWidth, 2000)
298 tryCompare(panel, "x", -launcher.panelWidth, 2000)
@@ -962,6 +962,7 @@ Item {
962 assertFocusOnIndex(last);
962 assertFocusOnIndex(last);
963
963
964 keyClick(Qt.Key_Down);
964 keyClick(Qt.Key_Down);
965+ waitForRendering(launcher);
965 keyClick(Qt.Key_Down);
966 keyClick(Qt.Key_Down);
966 assertFocusOnIndex(0); // Back to Top
967 assertFocusOnIndex(0); // Back to Top
967
968