on xenial help sign in
Return plain array.
commit6bda75fad0589f0afd14b8d86a1070e6034265bb authorMichał Karnicki <michal.karnicki@canonical.com> dateWed 29 Jan 2014, 14:19 (13 years ago) parent1c991c2
1 file changed+6−10
tests/qmltests/Components/tst_FilterGrid.qml+6−10
tests/qmltests/Components/tst_FilterGrid.qml+6−10
@@ -151,16 +151,12 @@ Rectangle {
151151 }
152152
153153 function test_modelSizeAffectsCollapsedRowCount_data() {
154− var data = new Array()
155− data.push({ model: fakeModelTwoItems, collapsedRowCountIndex: 0,
156− rowsWhenCollapsed: 1, visibleDelegates: 2 })
157− data.push({ model: fakeModelTwoItems, collapsedRowCountIndex: 1,
158− rowsWhenCollapsed: 1, visibleDelegates: 2 })
159− data.push({ model: fakeModelFourItems, collapsedRowCountIndex: 0,
160− rowsWhenCollapsed: 1, visibleDelegates: 3 })
161− data.push({ model: fakeModelFourItems, collapsedRowCountIndex: 1,
162− rowsWhenCollapsed: 2, visibleDelegates: 4 })
163− return data
154+ return [
155+ { model: fakeModelTwoItems, collapsedRowCountIndex: 0, rowsWhenCollapsed: 1, visibleDelegates: 2 },
156+ { model: fakeModelTwoItems, collapsedRowCountIndex: 1, rowsWhenCollapsed: 1, visibleDelegates: 2 },
157+ { model: fakeModelFourItems, collapsedRowCountIndex: 0, rowsWhenCollapsed: 1, visibleDelegates: 3 },
158+ { model: fakeModelFourItems, collapsedRowCountIndex: 1, rowsWhenCollapsed: 2, visibleDelegates: 4 },
159+ ]
164160 }
165161
166162 function test_modelSizeAffectsCollapsedRowCount(data) {