@@ -1,6 +1,7 @@
11import QtQuick 2.0
22import QtTest 1.0
33import Ubuntu.Components 0.1
4+import Unity.Test 0.1 as UT
45import "../../../Dash"
56import "CardHelpers.js" as Helpers
67
@@ -155,7 +156,7 @@ Rectangle {
155156 }
156157 }
157158
158− TestCase {
159+ UT.UnityTestCase {
159160 id: testCase
160161
161162 when: windowShown
@@ -165,22 +166,6 @@ Rectangle {
165166 property Item artImage: findChild(card, "artImage")
166167 property Item summary: findChild(card, "summaryLabel")
167168
168− // Find an object with the given name in the children tree of "obj"
169− function findChild(obj,objectName) {
170− var childs = new Array(0);
171− childs.push(obj)
172− while (childs.length > 0) {
173− if (childs[0].objectName == objectName) {
174− return childs[0]
175− }
176− for (var i in childs[0].children) {
177− childs.push(childs[0].children[i])
178− }
179− childs.splice(0, 1);
180− }
181− return null;
182− }
183−
184169 function initTestCase() {
185170 verify(testCase.header !== undefined, "Couldn't find header object.");
186171 }