From a96701bb8586939792d335afddbdfbdcb4d7cc6d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Siret Date: Sun, 3 Sep 2017 17:43:17 +0200 Subject: [PATCH] [test] Add a new test revealing a bug in IndexFilter --- tests/tst_indexfilter.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/tst_indexfilter.qml b/tests/tst_indexfilter.qml index 1c22f3f..1cc2282 100644 --- a/tests/tst_indexfilter.qml +++ b/tests/tst_indexfilter.qml @@ -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 } ]