[test] Add a new test revealing a bug in IndexFilter

This commit is contained in:
Pierre-Yves Siret 2017-09-03 17:43:17 +02:00
parent 84519a2a8e
commit a96701bb85
1 changed files with 13 additions and 0 deletions

View File

@ -60,10 +60,23 @@ Item {
minimumIndex: 1
maximumIndex: -2
},
IndexFilter {
property string tag: "toBigFilter"
property int expectedModelCount: 0
property var expectedValues: []
minimumIndex: 5
},
IndexFilter {
property string tag: "noFilter"
property int expectedModelCount: 5
property var expectedValues: [5, 3, 1, 2, 4]
},
IndexFilter {
property string tag: "undefinedFilter"
property int expectedModelCount: 5
property var expectedValues: [5, 3, 1, 2, 4]
minimumIndex: undefined
maximumIndex: null
}
]