@@ -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" },
@@ -365,13 +369,26 @@ Rectangle {
365 tryCompareFunction(function() { return testCase.header.x === data.left() }, true);
369 tryCompareFunction(function() { return testCase.header.x === data.left() }, true);
372+ function test_summary_layout_data() {
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 },
379+ function test_summary_layout(data) {
380+ selector.selectedIndex = data.index;
382+ tryCompareFunction(function() { return testCase.summary.y === data.top() }, true);
368 function test_art_visibility() {
385 function test_art_visibility() {
369− selector.selectedIndex = 7
386+ selector.selectedIndex = 8;
371− tryCompare(testCase.artImage, "source", "")
388+ tryCompare(testCase.artImage, "source", "");
372− compare(testCase.art.visible, false)
389+ compare(testCase.art.visible, false);
373− compare(testCase.art.height, 0)
390+ compare(testCase.art.height, 0);
374− compare(testCase.art.width, 0)
391+ compare(testCase.art.width, 0);