Update expected results
commitf43c72f691034c6003a8a64357b712846909601c
authorAlbert Astals <albert.astals@canonical.com>
dateFri 22 Aug 2014, 12:39 (12 years ago)
parent140f13f
tests/plugins/Dash/cardcreator/1.res+2−2
@@ -40,8 +40,8 @@ Item {
4040 width = root.fixedArtShapeSize.width;
4141 height = root.fixedArtShapeSize.height;
4242 } else {
43− width = Qt.binding(function() { return !visible ? 0 : image.width });
44− height = Qt.binding(function() { return !visible ? 0 : image.height });
43+ width = Qt.binding(function() { return image.status != Image.Ready ? 0 : image.width });
44+ height = Qt.binding(function() { return image.status != Image.Ready ? 0 : image.height });
4545 }
4646 }
4747 image: Image {
tests/plugins/Dash/cardcreator/3.res+3−3
@@ -40,9 +40,9 @@ Item {
4040 width = root.fixedArtShapeSize.width;
4141 height = root.fixedArtShapeSize.height;
4242 } else {
43− width = Qt.binding(function() { return !visible ? 0 : image.width });
44− height = Qt.binding(function() { return !visible ? 0 : image.height });
45− }
43+ width = Qt.binding(function() { return image.status != Image.Ready ? 0 : image.width });
44+ height = Qt.binding(function() { return image.status != Image.Ready ? 0 : image.height });
45+ }
4646 }
4747 image: Image {
4848 objectName: "artImage";
tests/plugins/Dash/cardcreator/5.res+3−3
@@ -40,9 +40,9 @@ Item {
4040 width = root.fixedArtShapeSize.width;
4141 height = root.fixedArtShapeSize.height;
4242 } else {
43− width = Qt.binding(function() { return !visible ? 0 : image.width });
44− height = Qt.binding(function() { return !visible ? 0 : image.height });
45− }
43+ width = Qt.binding(function() { return image.status != Image.Ready ? 0 : image.width });
44+ height = Qt.binding(function() { return image.status != Image.Ready ? 0 : image.height });
45+ }
4646 }
4747 image: Image {
4848 objectName: "artImage";