on xenial help sign in
check whether the overlay is enabled due to size constraints
5d7e9b5Lukáš Tinkl
tests/qmltests/tst_Shell.qml+6−2
@@ -2236,12 +2236,16 @@ Rectangle {
2236 waitForRendering(shortcutsOverlay);
2236 waitForRendering(shortcutsOverlay);
2237 tryCompare(launcher, "state", "visible");
2237 tryCompare(launcher, "state", "visible");
2238 tryCompare(shortcutHint, "visible", true);
2238 tryCompare(shortcutHint, "visible", true);
2239+ if (shortcutsOverlay.enabled) {
2239− tryCompareFunction(function() { return shortcutsOverlay.opacity > 0; }, true, 40000);
2240+ tryCompareFunction(function() { return shortcutsOverlay.visible; }, true, 15000);
2241+ }
2240
2242
2241 keyRelease(Qt.Key_Super_L, Qt.MetaModifier);
2243 keyRelease(Qt.Key_Super_L, Qt.MetaModifier);
2242 tryCompare(launcher, "state", "");
2244 tryCompare(launcher, "state", "");
2243 tryCompare(shortcutHint, "visible", false);
2245 tryCompare(shortcutHint, "visible", false);
2246+ if (shortcutsOverlay.enabled) {
2244− tryCompare(shortcutsOverlay, "opacity", 0);
2247+ tryCompare(shortcutsOverlay, "visible", false);
2248+ }
2245 }
2249 }
2246
2250
2247 function test_metaNumberLaunchesFromLauncher_data() {
2251 function test_metaNumberLaunchesFromLauncher_data() {