on xenial help sign in
Add test for fixedArtShapeSize
f782facAlbert Astals
tests/qmltests/Dash/tst_Card.qml+8
@@ -305,6 +305,14 @@ Rectangle {
305 }
305 }
306 }
306 }
307
307
308+ function test_art_shape_fixed_size() {
309+ selector.selectedIndex = 6;
310+ card.fixedArtShapeSize = Qt.size( units.gu(4), units.gu(4) );
311+ waitForRendering(card);
312+ tryCompare(art, "width", units.gu(4));
313+ tryCompare(art, "height", units.gu(4));
314+ }
315+
308 function test_art_layout_data() {
316 function test_art_layout_data() {
309 return [
317 return [
310 { tag: "Vertical", left: function() { return units.gu(1); }, index: 0},
318 { tag: "Vertical", left: function() { return units.gu(1); }, index: 0},