summaryrefslogtreecommitdiff
path: root/tests/auto/declarative_core/tst_editorialmodel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative_core/tst_editorialmodel.qml')
-rw-r--r--tests/auto/declarative_core/tst_editorialmodel.qml13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/auto/declarative_core/tst_editorialmodel.qml b/tests/auto/declarative_core/tst_editorialmodel.qml
index 9c551972..ae01b4fd 100644
--- a/tests/auto/declarative_core/tst_editorialmodel.qml
+++ b/tests/auto/declarative_core/tst_editorialmodel.qml
@@ -93,7 +93,16 @@ TestCase {
Utils.testObjectProperties(testCase, testModel, data);
}
- function test_consecutive_fetch() {
+ function test_consecutive_fetch_data() {
+ return [
+ { tag: "batchSize 1", batchSize: 1 },
+ { tag: "batchSize 2", batchSize: 2 },
+ { tag: "batchSize 5", batchSize: 5 },
+ { tag: "batchSize 10", batchSize: 10 },
+ ];
+ }
+
+ function test_consecutive_fetch(data) {
var expectedEditorials = [
{
"title": "Editorial 1",
@@ -123,7 +132,7 @@ TestCase {
]
var model = createModel();
- Utils.testConsecutiveFetch(testCase, model, parkViewHotel, expectedEditorials);
+ Utils.testConsecutiveFetch(testCase, model, parkViewHotel, expectedEditorials, data);
model.destroy();
}