on xenial help sign in
Add test for fixedArtShapeSize
commitf782fac9e5e055a64c59d1a6fb4726158e158be8 authorAlbert Astals <albert.astals@canonical.com> dateFri 13 Jun 2014, 11:26 (12 years ago) parent5aca790
1 file changed+8
tests/qmltests/Dash/tst_Card.qml+8
tests/qmltests/Dash/tst_Card.qml+8
@@ -305,6 +305,14 @@ Rectangle {
305305 }
306306 }
307307
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+
308316 function test_art_layout_data() {
309317 return [
310318 { tag: "Vertical", left: function() { return units.gu(1); }, index: 0},