on xenial help sign in
shorten line
commit98305551fb98c56757d57fd9a8beead2b291ef02 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 28 Jun 2013, 16:27 (13 years ago) parent7b7a331
1 file changed+5−1
tests/qmltests/Launcher/tst_Launcher.qml+5−1
tests/qmltests/Launcher/tst_Launcher.qml+5−1
@@ -156,7 +156,11 @@ Item {
156156
157157 // Check if the launcher slides in for units.gu(2). However, as the animation is 200ms
158158 // and the teaseTimer's timeout too, give it a 2 pixels grace distance
159− tryCompareFunction(function(){return launcher.maxPanelX >= -launcher.panelWidth + units.gu(2) - 2;}, true)
159+ tryCompareFunction(
160+ function(){
161+ return launcher.maxPanelX >= -launcher.panelWidth + units.gu(2) - 2;
162+ },
163+ true)
160164 } else {
161165 wait(100)
162166 compare(launcher.maxPanelX, -launcher.panelWidth, "Launcher moved even if it shouldn't")