on xenial help sign in
correctly cleanup
commit73aedc06771c8553ce0f22ec11b2eea552aea1b3 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 19 Aug 2016, 15:12 (10 years ago) parent15319a9
1 file changed+3−6
tests/qmltests/Notifications/tst_Notifications.qml+3−6
tests/qmltests/Notifications/tst_Notifications.qml+3−6
@@ -564,15 +564,12 @@ Item {
564564 signalName: "actionInvoked"
565565 }
566566
567− function init() {
568− while (mockModel.count > 0) {
569− mockModel.remove(0);
570− }
571− }
572−
573567 function cleanup() {
574568 clickThroughSpy.clear()
575569 actionSpy.clear()
570+ while (mockModel.count > 0) {
571+ mockModel.removeFirst();
572+ }
576573 }
577574
578575 function test_NotificationRenderer(data) {