on xenial help sign in
Fix indentation, add name to the Card test suite.
commitbee3fc9316865a8fbb13ddadcf4352797770b662 authorMichał Sawicz <michal.sawicz@canonical.com> dateWed 8 Jan 2014, 23:20 (13 years ago) parentf543196
2 files changed+8−7
qml/Dash/Card.qml+7−7 tests/qmltests/Dash/tst_Card.qml+1
qml/Dash/Card.qml+7−7
@@ -8,13 +8,13 @@ Item {
88 property var cardData
99
1010 width: {
11− if (template !== undefined) {
12− switch (template['card-size']) {
13− case "small": return units.gu(12);
14− case "large": return units.gu(38);
15− }
16− }
17− return units.gu(18.5);
11+ if (template !== undefined) {
12+ switch (template['card-size']) {
13+ case "small": return units.gu(12);
14+ case "large": return units.gu(38);
15+ }
16+ }
17+ return units.gu(18.5);
1818 }
1919 height: childrenRect.height
2020
tests/qmltests/Dash/tst_Card.qml+1
@@ -158,6 +158,7 @@ Rectangle {
158158
159159 UT.UnityTestCase {
160160 id: testCase
161+ name: "Card"
161162
162163 when: windowShown
163164