on xenial help sign in
We need the x to be exactly 0
5d151adAlbert Astals Cid
tests/qmltests/Launcher/tst_Launcher.qml+4−1
@@ -200,7 +200,10 @@ Item {
200 verify(!!panel);
200 verify(!!panel);
201
201
202 // wait until it gets fully extended
202 // wait until it gets fully extended
203− tryCompare(panel, "x", 0);
203+ // a tryCompare doesn't work since
204+ // compare(-0.000005917593600024418, 0);
205+ // is true and in this case we want exactly 0 or will have pain later on
206+ tryCompareFunction( function(){ return panel.x === 0; }, true );
204 tryCompare(launcher, "state", "visible");
207 tryCompare(launcher, "state", "visible");
205 }
208 }
206
209