@@ -20,16 +20,19 @@ import Dash 0.1
2020
2121Item {
2222 width: units.gu(40)
23− height: units.gu(30)
23+ height: units.gu(4.5)
2424
2525 property var testData: [
2626 [{"value":"text1","icon":"image://theme/ok"},{"value":"text2","icon":"image://theme/cancel"}],
27− [{"value":"text1","icon":"image://theme/ok"},{"value":"text2","icon":"image://theme/cancel"},{"value":"text3"}]
27+ [{"value":"text1","icon":"image://theme/ok"},{"value":"text2","icon":"image://theme/cancel"},{"value":"text3"}],
28+ [{"value":"text1","icon":"image://theme/ok"},{"value":"text2","icon":"image://theme/cancel"},{"value":"text3"},{"value":"text4"}],
29+ [{"value":"text1","icon":"image://theme/ok"},{"value":"text2","icon":"image://theme/cancel"},{"value":"text3","style":"highlighted"},{"value":"text4","icon":"image://theme/close","style":"highlighted"},{"value":"text5"}]
2830 ]
2931
3032 CardAttributes {
3133 id: cardAttributes
32− model: testData[0]
34+ model: testData[3]
35+ clip: true
3336 }
3437
3538 TestCase {
@@ -45,7 +48,7 @@ Item {
4548
4649 function test_columns(data) {
4750 cardAttributes.model = data;
48− compare(cardAttributes.columns, data.length);
51+ compare(cardAttributes.columns, 2 + data.length % 2);
4952 }
5053 }
5154}