on xenial help sign in
Don't check for an exact number but for <= 20 delegates created
commit9234bc583b88fbf52ab6fae8923f81928dbad9a7 authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 23 Jun 2016, 10:20 (10 years ago) parent35fc662
1 file changed+5−2
tests/qmltests/Dash/Previews/tst_PreviewRatingDisplayCreationRanges.qml+5−2
tests/qmltests/Dash/Previews/tst_PreviewRatingDisplayCreationRanges.qml+5−2
@@ -66,7 +66,7 @@ Flickable {
6666 }
6767
6868 UT.UnityTestCase {
69− name: "PreviewRatingDisplayTest"
69+ name: "PreviewRatingDisplayCreationRangesTest"
7070 when: windowShown
7171
7272 function initTestCase() {
@@ -108,7 +108,10 @@ Flickable {
108108 waitForRendering(root);
109109
110110 // Check we have only created a few delegates
111− tryCompare(root, "createdDelegates", 16);
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");
114+ tryCompareFunction(function() { return root.createdDelegates > 20 }, true);
112115
113116 // Check that item 499 isn't there on startup but if we scroll down
114117 // it will be there