@@ -17,6 +17,7 @@
1717import QtQuick 2.0
1818import QtTest 1.0
1919import Ubuntu.Components 0.1
20+import Ubuntu.Connectivity 1.0
2021import Unity.Test 0.1 as UT
2122import "../../../qml/Dash"
2223import "CardHelpers.js" as Helpers
@@ -566,5 +567,25 @@ Rectangle {
566567 verify((card.width - titleToCard.x - titleToCard.width) === units.gu(1));
567568 }
568569 }
570+
571+ function test_load_images_visibility_network_data() {
572+ return [
573+ { tag: "Visible, network", visible: true, limitedBandwith: false },
574+ { tag: "Visible, no network", visible: true, limitedBandwith: true },
575+ { tag: "Not Visible, network", visible: false, limitedBandwith: false },
576+ { tag: "Not Visible, no network", visible: false, limitedBandwith: true }
577+ ];
578+ }
579+
580+ function test_load_images_visibility_network(data) {
581+ loader.visible = data.visible;
582+ NetworkingStatus.limitedBandwith = data.limitedBandwith;
583+
584+ selector.selectedIndex = 0;
585+ waitForRendering(selector);
586+ waitForRendering(card);
587+
588+ verify(data.visible || !data.limitedBandwith || artImage.source == "");
589+ }
569590 }
570591}