@@ -682,11 +682,7 @@ Item {
682 var dragY = notification.height / 2;
682 var dragY = notification.height / 2;
683 touchFlick(notification, dragStart, dragY, dragEnd, dragY)
683 touchFlick(notification, dragStart, dragY, dragEnd, dragY)
684 waitForRendering(notification)
684 waitForRendering(notification)
685− if ((data.n.type === Notification.SnapDecision && notification.state === "expanded") || data.n.type === Notification.Confirmation) {
686− tryCompare(mockModel, "count", before)
688− tryCompare(mockModel, "count", before - 1)
685+ tryCompare(mockModel, "count", before - 1)
692 function test_closeButton_data() { // reuse the data
688 function test_closeButton_data() { // reuse the data
@@ -715,6 +711,7 @@ Item {
715 tryCompare(closeButton, "visible", true);
711 tryCompare(closeButton, "visible", true);
716 var before = mockModel.count;
712 var before = mockModel.count;
717 mouseClick(closeButton);
713 mouseClick(closeButton);
714+ waitForRendering(notification);
719 // closing the notification, the model count should be one less
716 // closing the notification, the model count should be one less
720 tryCompare(mockModel, "count", before - 1)
717 tryCompare(mockModel, "count", before - 1)