on xenial help sign in
clear the model before each testcase
301ff91Lukáš Tinkl
tests/qmltests/Notifications/tst_Notifications.qml+6
@@ -555,6 +555,12 @@ Item {
555 signalName: "actionInvoked"
555 signalName: "actionInvoked"
556 }
556 }
557
557
558+ function init() {
559+ while (mockModel.count > 0) {
560+ mockModel.remove(0);
561+ }
562+ }
563+
558 function cleanup() {
564 function cleanup() {
559 clickThroughSpy.clear()
565 clickThroughSpy.clear()
560 actionSpy.clear()
566 actionSpy.clear()