on xenial help sign in
adapt card creator tests yet again
commitac91d94cb71603cbd7976c0b7ce1feda332c7834 authorAlbert Astals <albert.astals@canonical.com> dateWed 27 Aug 2014, 15:49 (12 years ago) parentba3ffd0
6 files changed+16−16
tests/plugins/Dash/cardcreator/1.res+2−2 tests/plugins/Dash/cardcreator/2.res+2−2 tests/plugins/Dash/cardcreator/3.res+3−3 tests/plugins/Dash/cardcreator/4.res+3−3 tests/plugins/Dash/cardcreator/5.res+3−3 tests/plugins/Dash/cardcreator/7.res+3−3
tests/plugins/Dash/cardcreator/1.res+2−2
@@ -46,8 +46,8 @@ Item {
4646 }
4747 image: Image {
4848 objectName: "artImage";
49− property bool everShown: false;
50− source: { if (root.visible) everShown = true; return everShown && cardData && cardData["art"] || ""; }
49+ property bool doLoadSource: !NetworkingStatus.limitedBandwith;
50+ source: { if (root.visible) doLoadSource = true; return doLoadSource && cardData && cardData["art"] || ""; }
5151 cache: true;
5252 asynchronous: root.asynchronous;
5353 fillMode: Image.PreserveAspectCrop;
tests/plugins/Dash/cardcreator/2.res+2−2
@@ -67,8 +67,8 @@ Image {
6767 objectName: "mascotImage";
6868 anchors { verticalCenter: parent.verticalCenter; }
6969 readonly property int maxSize: Math.max(width, height) * 4;
70− property bool everShown: false;
71− source: { if (root.visible) everShown = true; return everShown && cardData && cardData["mascot"] || ""; }
70+ property bool doLoadSource: !NetworkingStatus.limitedBandwith;
71+ source: { if (root.visible) doLoadSource = true; return doLoadSource && cardData && cardData["mascot"] || ""; }
7272 width: units.gu(6);
7373 height: units.gu(5.625);
7474 sourceSize { width: maxSize; height: maxSize }
tests/plugins/Dash/cardcreator/3.res+3−3
@@ -46,9 +46,9 @@ Item {
4646 }
4747 image: Image {
4848 objectName: "artImage";
49− property bool everShown: false;
50− source: { if (root.visible) everShown = true; return everShown && cardData && cardData["art"] || ""; }
51− cache: true;
49+ property bool doLoadSource: !NetworkingStatus.limitedBandwith;
50+ source: { if (root.visible) doLoadSource = true; return doLoadSource && cardData && cardData["art"] || ""; }
51+ cache: true;
5252 asynchronous: root.asynchronous;
5353 fillMode: Image.PreserveAspectCrop;
5454 width: root.width;
tests/plugins/Dash/cardcreator/4.res+3−3
@@ -46,9 +46,9 @@ Loader {
4646 objectName: "mascotImage";
4747 anchors { verticalCenter: parent.verticalCenter; }
4848 readonly property int maxSize: Math.max(width, height) * 4;
49− property bool everShown: false;
50− source: { if (root.visible) everShown = true; return everShown && cardData && cardData["mascot"] || ""; }
51− width: units.gu(6);
49+ property bool doLoadSource: !NetworkingStatus.limitedBandwith;
50+ source: { if (root.visible) doLoadSource = true; return doLoadSource && cardData && cardData["mascot"] || ""; }
51+ width: units.gu(6);
5252 height: units.gu(5.625);
5353 sourceSize { width: maxSize; height: maxSize }
5454 fillMode: Image.PreserveAspectCrop;
tests/plugins/Dash/cardcreator/5.res+3−3
@@ -46,9 +46,9 @@ Item {
4646 }
4747 image: Image {
4848 objectName: "artImage";
49− property bool everShown: false;
50− source: { if (root.visible) everShown = true; return everShown && cardData && cardData["art"] || ""; }
51− cache: true;
49+ property bool doLoadSource: !NetworkingStatus.limitedBandwith;
50+ source: { if (root.visible) doLoadSource = true; return doLoadSource && cardData && cardData["art"] || ""; }
51+ cache: true;
5252 asynchronous: root.asynchronous;
5353 fillMode: Image.PreserveAspectCrop;
5454 width: root.width;
tests/plugins/Dash/cardcreator/7.res+3−3
@@ -67,9 +67,9 @@ Image {
6767 objectName: "mascotImage";
6868 anchors { verticalCenter: parent.verticalCenter; }
6969 readonly property int maxSize: Math.max(width, height) * 4;
70− property bool everShown: false;
71− source: { if (root.visible) everShown = true; return everShown && cardData && cardData["mascot"] || ""; }
72− width: units.gu(6);
70+ property bool doLoadSource: !NetworkingStatus.limitedBandwith;
71+ source: { if (root.visible) doLoadSource = true; return doLoadSource && cardData && cardData["mascot"] || ""; }
72+ width: units.gu(6);
7373 height: units.gu(5.625);
7474 sourceSize { width: maxSize; height: maxSize }
7575 fillMode: Image.PreserveAspectCrop;