on xenial help sign in
Fix indentation, add name to the Card test suite.
bee3fc9Michał Sawicz
qml/Dash/Card.qml+7−7
@@ -8,13 +8,13 @@ Item {
8 property var cardData
8 property var cardData
9
9
10 width: {
10 width: {
11− if (template !== undefined) {
11+ if (template !== undefined) {
12− switch (template['card-size']) {
12+ switch (template['card-size']) {
13− case "small": return units.gu(12);
13+ case "small": return units.gu(12);
14− case "large": return units.gu(38);
14+ case "large": return units.gu(38);
15− }
15+ }
16− }
16+ }
17− return units.gu(18.5);
17+ return units.gu(18.5);
18 }
18 }
19 height: childrenRect.height
19 height: childrenRect.height
20
20
tests/qmltests/Dash/tst_Card.qml+1
@@ -158,6 +158,7 @@ Rectangle {
158
158
159 UT.UnityTestCase {
159 UT.UnityTestCase {
160 id: testCase
160 id: testCase
161+ name: "Card"
161
162
162 when: windowShown
163 when: windowShown
163
164