on xenial help sign in
Forgot to commit the qmltests for hiding and implicit-hiding of a peeking app-icon.
edf3c4bMirco Müller
tests/qmltests/Launcher/tst_Launcher.qml+13−2
@@ -673,11 +673,22 @@ Item {
673 }
673 }
674
674
675 function test_alertHidingIcon() {
675 function test_alertHidingIcon() {
676−
676+ var appIcon6 = findChild(launcher, "launcherDelegate6");
677+ LauncherModel.alert(LauncherModel.get(6).appId, true)
678+ wait(500)
679+ verify(appIcon6.x > 0)
680+ LauncherModel.alert(LauncherModel.get(6).appId, false)
681+ tryCompare(appIcon6, "x", 0, 1000, "x-value of appId #6 should not be non-zero")
677 }
682 }
678
683
679 function test_alertImplicitHidingIcon() {
684 function test_alertImplicitHidingIcon() {
680−
685+ var appIcon4 = findChild(launcher, "launcherDelegate4");
686+ LauncherModel.alert(LauncherModel.get(4).appId, true)
687+ wait(500)
688+ verify(appIcon4.x > 0)
689+ dragLauncherIntoView();
690+ tryCompare(appIcon4, "x", 0, 1000, "x-value of appId #4 should not be non-zero")
691+ LauncherModel.alert(LauncherModel.get(4).appId, false)
681 }
692 }
682
693
683 function test_alertIgnoreFocusedApp() {
694 function test_alertIgnoreFocusedApp() {