@@ -110,6 +110,10 @@ Rectangle {
110110 "name": "Art, header - vertical",
111111 "layout": { "components": Helpers.update(JSON.parse(root.fullMapping), { "summary": undefined }) }
112112 },
113+ {
114+ "name": "Art, summary - vertical",
115+ "layout": { "components": { "art": "art", "summary": "summary" } }
116+ },
113117 {
114118 "name": "Header title only - horizontal",
115119 "layout": { "template": { "card-layout": "horizontal" },
@@ -365,13 +369,26 @@ Rectangle {
365369 tryCompareFunction(function() { return testCase.header.x === data.left() }, true);
366370 }
367371
372+ function test_summary_layout_data() {
373+ return [
374+ { tag: "With header", top: function() { return header.y + header.height }, index: 0 },
375+ { tag: "Without header", top: function() { return art.y + art.height }, index: 7 },
376+ ]
377+ }
378+
379+ function test_summary_layout(data) {
380+ selector.selectedIndex = data.index;
381+
382+ tryCompareFunction(function() { return testCase.summary.y === data.top() }, true);
383+ }
384+
368385 function test_art_visibility() {
369− selector.selectedIndex = 7
386+ selector.selectedIndex = 8;
370387
371− tryCompare(testCase.artImage, "source", "")
372− compare(testCase.art.visible, false)
373− compare(testCase.art.height, 0)
374− compare(testCase.art.width, 0)
388+ tryCompare(testCase.artImage, "source", "");
389+ compare(testCase.art.visible, false);
390+ compare(testCase.art.height, 0);
391+ compare(testCase.art.width, 0);
375392 }
376393 }
377394}