on xenial help sign in
Fix tests

Wonder why these were working for me on friday :-S

commit694640fd9d437724083780e1a5bb897237c3c761 authorAlbert Astals <albert.astals@canonical.com> dateMon 11 Nov 2013, 10:15 (13 years ago) parentf469362
3 files changed+3−2
tests/qmltests/Dash/qml/FakeScopeView.qml−1 tests/qmltests/Dash/tst_DashContent.qml+1−1 tests/utils/modules/Unity/Test/UnityTestCase.qml+2
tests/qmltests/Dash/qml/FakeScopeView.qml−1
@@ -23,7 +23,6 @@ GenericScopeView {
2323 id: fakeScopeView
2424
2525 property alias backColor : back.color
26− moving: listView.moving
2726
2827 onEndReached: {
2928 if (scope != undefined && shell != undefined && shell.scopeStatus != undefined) {
tests/qmltests/Dash/tst_DashContent.qml+1−1
@@ -249,7 +249,7 @@ Item {
249249
250250 var startX = dashContentList.width/2;
251251 var startY = dashContentList.height/2;
252− touchFlick(dashContentList, startX, startY, startX, startY - units.gu(800));
252+ touchFlick(dashContentList, startX, startY, startX, startY - units.gu(80));
253253
254254 tryCompare(dashContentList.currentItem, "moving", true);
255255
tests/utils/modules/Unity/Test/UnityTestCase.qml+2
@@ -214,6 +214,8 @@ TestCase {
214214
215215 // speed is in pixels/second
216216 function touchFlick(item, x, y, toX, toY, beginTouch, endTouch, speed, iterations) {
217+ // Make sure the item is rendered
218+ waitForRendering(item);
217219
218220 // Default to true for beginTouch if not present
219221 beginTouch = (beginTouch !== undefined) ? beginTouch : true