@@ -73,8 +73,8 @@ Rectangle {
7373 "layout": { "components": Helpers.update(JSON.parse(Helpers.fullMapping), { "art": {"aspect-ratio": 0.5, "summary": undefined }}) }
7474 },
7575 {
76− "name": "Title - centered",
77− "layout": { "template": { "card-layout": "vertical" }, "components": { "title": { "field": "title", "align": "center" } } }
76+ "name": "Title - vertical",
77+ "layout": { "template": { "card-layout": "vertical" }, "components": { "title": "title" } }
7878 },
7979 {
8080 "name": "Title - horizontal",
@@ -88,10 +88,6 @@ Rectangle {
8888 "name": "Title, attributes - horizontal",
8989 "layout": { "template": { "card-layout": "horizontal" }, "components": { "title": "title", "attributes": "attributes" } }
9090 },
91− {
92− "name": "Title, attributes - centered",
93− "layout": { "template": { "card-layout": "vertical" }, "components": { "title": "title", "attributes": "attributes" } }
94− },
9591 ]
9692
9793 CardTool {
@@ -322,11 +318,21 @@ Rectangle {
322318
323319 function test_card_title_alignment_data() {
324320 return [
325− { tag: "Title - centered", value: Text.AlignHCenter, index: 11, layout_index: 0 },
326− { tag: "Title - horizontal", value: Text.AlignLeft, index: 12, layout_index: 0},
327− { tag: "Title, subtitle - vertical", value: Text.AlignLeft, index: 13, layout_index: 0},
328− { tag: "Title, attribute - horizontal", value: Text.AlignLeft, index: 14, layout_index: 0},
329− { tag: "Title, attribute - centered", value: Text.AlignLeft, index: 15, layout_index: 0},
321+ { tag: "Art, header, summary", value: Text.AlignLeft, index: 0 },
322+ { tag: "Header, summary", value: Text.AlignLeft, index: 1 },
323+ { tag: "Art, header", value: Text.AlignLeft, index: 2 },
324+ { tag: "Header only", value: Text.AlignLeft, index: 3 },
325+ { tag: "Header title only", value: Text.AlignHCenter, index: 4 },
326+ { tag: "Header title and subtitle", value: Text.AlignLeft, index: 5 },
327+ { tag: "Header title and mascot", value: Text.AlignLeft, index: 6 },
328+ { tag: "Art, header, summary - small", value: Text.AlignLeft, index: 7 },
329+ { tag: "Art, header, summary - large", value: Text.AlignLeft, index: 8 },
330+ { tag: "Art, header, summary - horizontal", value: Text.AlignLeft, index: 9 },
331+ { tag: "Art, header - portrait", value: Text.AlignLeft, index: 10 },
332+ { tag: "Title - vertical", value: Text.AlignHCenter, index: 11 },
333+ { tag: "Title - horizontal", value: Text.AlignLeft, index: 12 },
334+ { tag: "Title, subtitle - vertical", value: Text.AlignLeft, index: 13 },
335+ { tag: "Title, attributes - horizontal", value: Text.AlignLeft, index: 14 },
330336 ];
331337 }
332338
@@ -336,6 +342,8 @@ Rectangle {
336342 layoutSelector.selectedIndex = data.layout_index;
337343 }
338344
345+ cardTool.components['title'] = { "field": "title", "align": "center" };
346+
339347 if (data.hasOwnProperty("property")) {
340348 tryCompare(cardTool, "titleAlignment", data.value);
341349 }