on xenial help sign in
Test: Add a condition for art.height being > 0

means stuff has already been layouted a bit without it it can happen that we get 0 for everything at startup and tests still pass Approved by: Andrea Cimitan, PS Jenkins bot

commit2b647b88d2aa876e3a4738a9f866b41ab171aab3 authorAlbert Astals <albert.astals@canonical.com> dateThu 31 Jul 2014, 16:48 (12 years ago) parent17d41c0cc82c22
1 file changed+1−1
tests/qmltests/Dash/tst_Card.qml+1−1
tests/qmltests/Dash/tst_Card.qml+1−1
@@ -359,7 +359,7 @@ Rectangle {
359359
360360 waitForRendering(card);
361361
362− tryCompareFunction(function() { return testCase.summary.y === data.top() }, true);
362+ tryCompareFunction(function() { return art.height > 0 && testCase.summary.y === data.top() }, true);
363363 }
364364
365365 function test_art_visibility() {