on xenial help sign in
shorten line
9830555Michael Zanetti
tests/qmltests/Launcher/tst_Launcher.qml+5−1
@@ -156,7 +156,11 @@ Item {
156
156
157 // Check if the launcher slides in for units.gu(2). However, as the animation is 200ms
157 // Check if the launcher slides in for units.gu(2). However, as the animation is 200ms
158 // and the teaseTimer's timeout too, give it a 2 pixels grace distance
158 // and the teaseTimer's timeout too, give it a 2 pixels grace distance
159+ tryCompareFunction(
160+ function(){
159− tryCompareFunction(function(){return launcher.maxPanelX >= -launcher.panelWidth + units.gu(2) - 2;}, true)
161+ return launcher.maxPanelX >= -launcher.panelWidth + units.gu(2) - 2;
162+ },
163+ true)
160 } else {
164 } else {
161 wait(100)
165 wait(100)
162 compare(launcher.maxPanelX, -launcher.panelWidth, "Launcher moved even if it shouldn't")
166 compare(launcher.maxPanelX, -launcher.panelWidth, "Launcher moved even if it shouldn't")