389
396
compare(icon.visible, data.iconVisible, "avatar-icon visibility is incorrect")
390
397
compare(shapedIcon.visible, data.shapedIcon, "shaped-icon visibility is incorrect")
391
398
compare(nonShapedIcon.visible, data.nonShapedIcon, "non-shaped-icon visibility is incorrect")
399
compare(interactiveArea.enabled, data.interactiveAreaEnabled, "check for interactive area")
393
// test input does not fall through
394
mouseClick(notification, notification.width / 2, notification.height / 2)
395
if(data.type == Notification.Interactive) {
401
if(data.interactiveAreaEnabled) {
402
mouseClick(notification, notification.width / 2, notification.height / 2)
397
404
compare(actionSpy.signalArguments[0][0], data.actions[0]["id"], "got wrong id for interactive action")
405
compare(clickThroughSpy.count, 0, "click on interactive notification fell through")
399
compare(clickThroughSpy.count, 0, "click on notification fell through")
401
408
compare(secondaryIcon.visible, data.secondaryIconVisible, "secondary-icon visibility is incorrect")
402
409
compare(summaryLabel.visible, data.summaryVisible, "summary-text visibility is incorrect")