@@ -90,16 +90,13 @@ Item {
9090 factory.menuData = menuData;
9191 timeFormatter.time = data.time.getTime()/1000;
9292
93− var loader = findChild(factory, "loader");
94− verify(loader !== undefined);
95−
96− tryCompare(loader.item, "objectName", "simpleTextMessage");
97− compare(loader.item.title, data.title, "Title does not match data");
98− compare(loader.item.time, timeFormatter.timeString, "Time does not match data");
99− compare(loader.item.body, data.body, "Message does not match data");
100− compare(loader.item.avatar, data.avatar, "Avatar does not match data");
101− compare(loader.item.icon, data.icon, "App icon does not match data");
102− compare(loader.item.enabled, data.enabled, "Enabled does not match data");
93+ tryCompare(factory.item, "objectName", "simpleTextMessage");
94+ compare(factory.item.title, data.title, "Title does not match data");
95+ compare(factory.item.time, timeFormatter.timeString, "Time does not match data");
96+ compare(factory.item.body, data.body, "Message does not match data");
97+ compare(factory.item.avatar, data.avatar, "Avatar does not match data");
98+ compare(factory.item.icon, data.icon, "App icon does not match data");
99+ compare(factory.item.enabled, data.enabled, "Enabled does not match data");
103100 }
104101
105102 function test_create_textmessage_data() {
@@ -128,16 +125,13 @@ Item {
128125 factory.menuData = menuData;
129126 timeFormatter.time = data.time.getTime()/1000;
130127
131− var loader = findChild(factory, "loader");
132− verify(loader !== undefined);
133−
134− tryCompare(loader.item, "objectName", "textMessage");
135− compare(loader.item.title, data.title, "Title does not match data");
136− compare(loader.item.time, timeFormatter.timeString, "Time does not match data");
137− compare(loader.item.body, data.body, "Message does not match data");
138− compare(loader.item.avatar, data.avatar, "Avatar does not match data");
139− compare(loader.item.icon, data.icon, "App icon does not match data");
140− compare(loader.item.enabled, data.enabled, "Enabled does not match data");
128+ tryCompare(factory.item, "objectName", "textMessage");
129+ compare(factory.item.title, data.title, "Title does not match data");
130+ compare(factory.item.time, timeFormatter.timeString, "Time does not match data");
131+ compare(factory.item.body, data.body, "Message does not match data");
132+ compare(factory.item.avatar, data.avatar, "Avatar does not match data");
133+ compare(factory.item.icon, data.icon, "App icon does not match data");
134+ compare(factory.item.enabled, data.enabled, "Enabled does not match data");
141135 }
142136
143137
@@ -170,16 +164,13 @@ Item {
170164 factory.menuData = menuData;
171165 timeFormatter.time = data.time.getTime()/1000;
172166
173− var loader = findChild(factory, "loader");
174− verify(loader !== undefined);
175−
176− tryCompare(loader.item, "objectName", "snapDecision");
177− compare(loader.item.title, data.title, "Title does not match data");
178− compare(loader.item.time, timeFormatter.timeString, "Time does not match data");
179− compare(loader.item.body, data.body, "Message does not match data");
180− compare(loader.item.avatar, data.avatar, "Avatar does not match data");
181− compare(loader.item.icon, data.icon, "App icon does not match data");
182− compare(loader.item.enabled, data.enabled, "Enabled does not match data");
167+ tryCompare(factory.item, "objectName", "snapDecision");
168+ compare(factory.item.title, data.title, "Title does not match data");
169+ compare(factory.item.time, timeFormatter.timeString, "Time does not match data");
170+ compare(factory.item.body, data.body, "Message does not match data");
171+ compare(factory.item.avatar, data.avatar, "Avatar does not match data");
172+ compare(factory.item.icon, data.icon, "App icon does not match data");
173+ compare(factory.item.enabled, data.enabled, "Enabled does not match data");
183174 }
184175
185176 }