on xenial help sign in
We need the x to be exactly 0
commit5d151adc818ffd04bcbae2d3a841b712e4655d3f authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 29 Sep 2015, 10:42 (11 years ago) parentc5de2d9
1 file changed+4−1
tests/qmltests/Launcher/tst_Launcher.qml+4−1
tests/qmltests/Launcher/tst_Launcher.qml+4−1
@@ -200,7 +200,10 @@ Item {
200200 verify(!!panel);
201201
202202 // 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 );
204207 tryCompare(launcher, "state", "visible");
205208 }
206209