on xenial help sign in
Don't check for an exact number but for <= 20 delegates created
9234bc5Albert Astals Cid
tests/qmltests/Dash/Previews/tst_PreviewRatingDisplayCreationRanges.qml+5−2
@@ -66,7 +66,7 @@ Flickable {
66 }
66 }
67
67
68 UT.UnityTestCase {
68 UT.UnityTestCase {
69− name: "PreviewRatingDisplayTest"
69+ name: "PreviewRatingDisplayCreationRangesTest"
70 when: windowShown
70 when: windowShown
71
71
72 function initTestCase() {
72 function initTestCase() {
@@ -108,7 +108,10 @@ Flickable {
108 waitForRendering(root);
108 waitForRendering(root);
109
109
110 // Check we have only created a few delegates
110 // Check we have only created a few delegates
111+ // For some reason xenial and yaketti we get 16 and on vivid 15 so
112+ // settle for <= 20
113+ expectFailContinue("", "Should not create more than 20 delegates when using ranges");
111− tryCompare(root, "createdDelegates", 16);
114+ tryCompareFunction(function() { return root.createdDelegates > 20 }, true);
112
115
113 // Check that item 499 isn't there on startup but if we scroll down
116 // Check that item 499 isn't there on startup but if we scroll down
114 // it will be there
117 // it will be there