@@ -110,6 +110,10 @@ Rectangle {
110 "name": "Art, header - vertical",
110 "name": "Art, header - vertical",
111 "layout": { "components": Helpers.update(JSON.parse(root.fullMapping), { "summary": undefined }) }
111 "layout": { "components": Helpers.update(JSON.parse(root.fullMapping), { "summary": undefined }) }
114+ "name": "Art, summary - vertical",
115+ "layout": { "components": { "art": "art", "summary": "summary" } }
114 "name": "Header title only - horizontal",
118 "name": "Header title only - horizontal",
115 "layout": { "template": { "card-layout": "horizontal" },
119 "layout": { "template": { "card-layout": "horizontal" },
@@ -356,13 +360,26 @@ Rectangle {
356 tryCompareFunction(function() { return testCase.header.x === data.left() }, true);
360 tryCompareFunction(function() { return testCase.header.x === data.left() }, true);
363+ function test_summary_layout_data() {
365+ { tag: "With header", top: function() { return header.y + header.height }, index: 0 },
366+ { tag: "Without header", top: function() { return art.y + art.height }, index: 7 },
370+ function test_summary_layout(data) {
371+ selector.selectedIndex = data.index;
373+ tryCompareFunction(function() { return testCase.summary.y === data.top() }, true);
359 function test_art_visibility() {
376 function test_art_visibility() {
360− selector.selectedIndex = 7
377+ selector.selectedIndex = 8;
362− tryCompare(testCase.artImage, "source", "")
379+ tryCompare(testCase.artImage, "source", "");
363− compare(testCase.art.visible, false)
380+ compare(testCase.art.visible, false);
364− compare(testCase.art.height, 0)
381+ compare(testCase.art.height, 0);
365− compare(testCase.art.width, 0)
382+ compare(testCase.art.width, 0);