on xenial help sign in
correctly cleanup
73aedc0Lukáš Tinkl
tests/qmltests/Notifications/tst_Notifications.qml+3−6
@@ -564,15 +564,12 @@ Item {
564 signalName: "actionInvoked"
564 signalName: "actionInvoked"
565 }
565 }
566
566
567− function init() {
568− while (mockModel.count > 0) {
569− mockModel.remove(0);
570− }
571− }
572−
573 function cleanup() {
567 function cleanup() {
574 clickThroughSpy.clear()
568 clickThroughSpy.clear()
575 actionSpy.clear()
569 actionSpy.clear()
570+ while (mockModel.count > 0) {
571+ mockModel.removeFirst();
572+ }
576 }
573 }
577
574
578 function test_NotificationRenderer(data) {
575 function test_NotificationRenderer(data) {