@@ -76,6 +76,20 @@ Row {
7676 mockModel.append(n)
7777 }
7878
79+ function addEphemeralNonShapedIconNotification() {
80+ var n = {
81+ type: Notification.Ephemeral,
82+ hints: {"x-canonical-non-shaped-icon": "true"},
83+ summary: "Contacts",
84+ body: "Synchronised contacts-database with cloud-storage.",
85+ icon: "../graphics/applicationIcons/contacts-app.png",
86+ secondaryIcon: "",
87+ actions: []
88+ }
89+
90+ mockModel.append(n)
91+ }
92+
7993 function addEphemeralIconSummaryNotification() {
8094 var n = {
8195 type: Notification.Ephemeral,
@@ -156,6 +170,12 @@ Row {
156170 onClicked: addEphemeralNotification()
157171 }
158172
173+ Button {
174+ width: parent.width
175+ text: "add an non-shaped-icon-summary-body"
176+ onClicked: addEphemeralNonShapedIconNotification()
177+ }
178+
159179 Button {
160180 width: parent.width
161181 text: "add an icon-summary"
@@ -206,6 +226,8 @@ Row {
206226 bodyVisible: true,
207227 interactiveAreaEnabled: false,
208228 iconVisible: true,
229+ shapedIcon: true,
230+ nonShapedIcon: false,
209231 secondaryIconVisible: true,
210232 buttonRowVisible: true,
211233 buttonTinted: true
@@ -223,6 +245,8 @@ Row {
223245 bodyVisible: false,
224246 interactiveAreaEnabled: false,
225247 iconVisible: false,
248+ shapedIcon: false,
249+ nonShapedIcon: false,
226250 secondaryIconVisible: true,
227251 buttonRowVisible: false,
228252 buttonTinted: false
@@ -240,6 +264,8 @@ Row {
240264 bodyVisible: false,
241265 interactiveAreaEnabled: false,
242266 iconVisible: false,
267+ shapedIcon: false,
268+ nonShapedIcon: false,
243269 secondaryIconVisible: true,
244270 buttonRowVisible: false,
245271 buttonTinted: false
@@ -257,6 +283,8 @@ Row {
257283 bodyVisible: true,
258284 interactiveAreaEnabled: true,
259285 iconVisible: true,
286+ shapedIcon: true,
287+ nonShapedIcon: false,
260288 secondaryIconVisible: false,
261289 buttonRowVisible: false,
262290 buttonTinted: false
@@ -275,6 +303,8 @@ Row {
275303 bodyVisible: true,
276304 interactiveAreaEnabled: false,
277305 iconVisible: true,
306+ shapedIcon: true,
307+ nonShapedIcon: false,
278308 secondaryIconVisible: false,
279309 buttonRowVisible: true,
280310 buttonTinted: false
@@ -292,9 +322,31 @@ Row {
292322 bodyVisible: true,
293323 interactiveAreaEnabled: false,
294324 iconVisible: true,
325+ shapedIcon: true,
326+ nonShapedIcon: false,
295327 secondaryIconVisible: true,
296328 buttonRowVisible: false,
297329 buttonTinted: false
330+ },
331+ {
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",
339+ secondaryIcon: "",
340+ actions: [],
341+ summaryVisible: true,
342+ bodyVisible: true,
343+ interactiveAreaEnabled: false,
344+ iconVisible: true,
345+ shapedIcon: false,
346+ nonShapedIcon: true,
347+ secondaryIconVisible: false,
348+ buttonRowVisible: false,
349+ buttonTinted: false
298350 }
299351 ]
300352 }
@@ -330,6 +382,8 @@ Row {
330382 verify(notification !== undefined, "notification wasn't found");
331383
332384 var icon = findChild(notification, "icon")
385+ var shapedIcon = findChild(notification, "shapedIcon")
386+ var nonShapedIcon = findChild(notification, "nonShapedIcon")
333387 var interactiveArea = findChild(notification, "interactiveArea")
334388 var secondaryIcon = findChild(notification, "secondaryIcon")
335389 var summaryLabel = findChild(notification, "summaryLabel")
@@ -338,6 +392,8 @@ Row {
338392 waitForRendering(buttonRow)
339393
340394 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")
341397 compare(interactiveArea.enabled, data.interactiveAreaEnabled, "check for interactive area")
342398
343399 if(data.interactiveAreaEnabled) {