@@ -76,6 +76,20 @@ Row {
76 mockModel.append(n)
76 mockModel.append(n)
79+ function addEphemeralNonShapedIconNotification() {
81+ type: Notification.Ephemeral,
82+ hints: {"x-canonical-non-shaped-icon": "true"},
84+ body: "Synchronised contacts-database with cloud-storage.",
85+ icon: "../graphics/applicationIcons/contacts-app.png",
79 function addEphemeralIconSummaryNotification() {
93 function addEphemeralIconSummaryNotification() {
81 type: Notification.Ephemeral,
95 type: Notification.Ephemeral,
@@ -156,6 +170,12 @@ Row {
156 onClicked: addEphemeralNotification()
170 onClicked: addEphemeralNotification()
175+ text: "add an non-shaped-icon-summary-body"
176+ onClicked: addEphemeralNonShapedIconNotification()
160 width: parent.width
180 width: parent.width
161 text: "add an icon-summary"
181 text: "add an icon-summary"
@@ -206,6 +226,8 @@ Row {
206 bodyVisible: true,
226 bodyVisible: true,
207 interactiveAreaEnabled: false,
227 interactiveAreaEnabled: false,
208 iconVisible: true,
228 iconVisible: true,
230+ nonShapedIcon: false,
209 secondaryIconVisible: true,
231 secondaryIconVisible: true,
210 buttonRowVisible: true,
232 buttonRowVisible: true,
211 buttonTinted: true
233 buttonTinted: true
@@ -223,6 +245,8 @@ Row {
223 bodyVisible: false,
245 bodyVisible: false,
224 interactiveAreaEnabled: false,
246 interactiveAreaEnabled: false,
225 iconVisible: false,
247 iconVisible: false,
249+ nonShapedIcon: false,
226 secondaryIconVisible: true,
250 secondaryIconVisible: true,
227 buttonRowVisible: false,
251 buttonRowVisible: false,
228 buttonTinted: false
252 buttonTinted: false
@@ -240,6 +264,8 @@ Row {
240 bodyVisible: false,
264 bodyVisible: false,
241 interactiveAreaEnabled: false,
265 interactiveAreaEnabled: false,
242 iconVisible: false,
266 iconVisible: false,
268+ nonShapedIcon: false,
243 secondaryIconVisible: true,
269 secondaryIconVisible: true,
244 buttonRowVisible: false,
270 buttonRowVisible: false,
245 buttonTinted: false
271 buttonTinted: false
@@ -257,6 +283,8 @@ Row {
257 bodyVisible: true,
283 bodyVisible: true,
258 interactiveAreaEnabled: true,
284 interactiveAreaEnabled: true,
259 iconVisible: true,
285 iconVisible: true,
287+ nonShapedIcon: false,
260 secondaryIconVisible: false,
288 secondaryIconVisible: false,
261 buttonRowVisible: false,
289 buttonRowVisible: false,
262 buttonTinted: false
290 buttonTinted: false
@@ -275,6 +303,8 @@ Row {
275 bodyVisible: true,
303 bodyVisible: true,
276 interactiveAreaEnabled: false,
304 interactiveAreaEnabled: false,
277 iconVisible: true,
305 iconVisible: true,
307+ nonShapedIcon: false,
278 secondaryIconVisible: false,
308 secondaryIconVisible: false,
279 buttonRowVisible: true,
309 buttonRowVisible: true,
280 buttonTinted: false
310 buttonTinted: false
@@ -292,9 +322,31 @@ Row {
292 bodyVisible: true,
322 bodyVisible: true,
293 interactiveAreaEnabled: false,
323 interactiveAreaEnabled: false,
294 iconVisible: true,
324 iconVisible: true,
326+ nonShapedIcon: false,
295 secondaryIconVisible: true,
327 secondaryIconVisible: true,
296 buttonRowVisible: false,
328 buttonRowVisible: false,
297 buttonTinted: false
329 buttonTinted: false
332+ tag: "Ephemeral notification with non-shaped icon",
333+ type: Notification.Ephemeral,
334+ hints: {"x-canonical-private-button-tint": "false",
335+ "x-canonical-non-shaped-icon": "true"},
336+ summary: "Contacts",
337+ body: "Synchronised contacts-database with cloud-storage.",
338+ icon: "../graphics/applicationIcons/contacts-app.png",
341+ summaryVisible: true,
343+ interactiveAreaEnabled: false,
346+ nonShapedIcon: true,
347+ secondaryIconVisible: false,
348+ buttonRowVisible: false,
@@ -330,6 +382,8 @@ Row {
330 verify(notification !== undefined, "notification wasn't found");
382 verify(notification !== undefined, "notification wasn't found");
332 var icon = findChild(notification, "icon")
384 var icon = findChild(notification, "icon")
385+ var shapedIcon = findChild(notification, "shapedIcon")
386+ var nonShapedIcon = findChild(notification, "nonShapedIcon")
333 var interactiveArea = findChild(notification, "interactiveArea")
387 var interactiveArea = findChild(notification, "interactiveArea")
334 var secondaryIcon = findChild(notification, "secondaryIcon")
388 var secondaryIcon = findChild(notification, "secondaryIcon")
335 var summaryLabel = findChild(notification, "summaryLabel")
389 var summaryLabel = findChild(notification, "summaryLabel")
@@ -338,6 +392,8 @@ Row {
338 waitForRendering(buttonRow)
392 waitForRendering(buttonRow)
340 compare(icon.visible, data.iconVisible, "avatar-icon visibility is incorrect")
394 compare(icon.visible, data.iconVisible, "avatar-icon visibility is incorrect")
395+ compare(shapedIcon.visible, data.shapedIcon, "shaped-icon visibility is incorrect")
396+ compare(nonShapedIcon.visible, data.nonShapedIcon, "non-shaped-icon visibility is incorrect")
341 compare(interactiveArea.enabled, data.interactiveAreaEnabled, "check for interactive area")
397 compare(interactiveArea.enabled, data.interactiveAreaEnabled, "check for interactive area")
343 if(data.interactiveAreaEnabled) {
399 if(data.interactiveAreaEnabled) {