@@ -33,6 +33,10 @@ Row {
3333 function invokeAction(actionId) {
3434 mockModel.actionInvoked(actionId)
3535 }
36+
37+ function close() {
38+ mockModel.remove(1)
39+ }
3640 }
3741 }
3842
@@ -482,6 +486,17 @@ Row {
482486 compare(actionSpy.signalArguments[0][0], data.actions[1]["id"], "got wrong id for negative action")
483487 }
484488 }
489+
490+ // swipe-to-dismiss check
491+ if (data.type !== Notification.SnapDecision && notification.state !== "expanded") {
492+ var before = mockModel.count
493+ var dragStart = notification.width * 0.25;
494+ var dragEnd = notification.width;
495+ var dragY = notification.height / 2;
496+ touchFlick(notification, dragStart, dragY, dragEnd, dragY)
497+ waitForRendering(notification)
498+ tryCompare(mockModel, "count", before - 1)
499+ }
485500 }
486501 }
487502}