@@ -1,6 +1,7 @@
1import QtQuick 2.0
1import QtQuick 2.0
2import QtTest 1.0
2import QtTest 1.0
3import Ubuntu.Components 0.1
3import Ubuntu.Components 0.1
4+import Unity.Test 0.1 as UT
4import "../../../Dash"
5import "../../../Dash"
5import "CardHelpers.js" as Helpers
6import "CardHelpers.js" as Helpers
@@ -155,7 +156,7 @@ Rectangle {
158− TestCase {
159+ UT.UnityTestCase {
159 id: testCase
160 id: testCase
161 when: windowShown
162 when: windowShown
@@ -165,22 +166,6 @@ Rectangle {
165 property Item artImage: findChild(card, "artImage")
166 property Item artImage: findChild(card, "artImage")
166 property Item summary: findChild(card, "summaryLabel")
167 property Item summary: findChild(card, "summaryLabel")
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);
172− while (childs.length > 0) {
173− if (childs[0].objectName == objectName) {
176− for (var i in childs[0].children) {
177− childs.push(childs[0].children[i])
179− childs.splice(0, 1);
184 function initTestCase() {
169 function initTestCase() {
185 verify(testCase.header !== undefined, "Couldn't find header object.");
170 verify(testCase.header !== undefined, "Couldn't find header object.");