diff options
Diffstat (limited to 'apps/system/test/unit/mock_notification_helper.js')
-rw-r--r-- | apps/system/test/unit/mock_notification_helper.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/system/test/unit/mock_notification_helper.js b/apps/system/test/unit/mock_notification_helper.js new file mode 100644 index 0000000..adb80f9 --- /dev/null +++ b/apps/system/test/unit/mock_notification_helper.js @@ -0,0 +1,22 @@ +var MockNotificationHelper = { + send: function(title, body, icon, clickCB, closeCB) { + this.mTitle = title; + this.mBody = body; + this.mIcon = icon; + this.mClickCB = clickCB; + this.mCloseCB = closeCB; + }, + + mTitle: null, + mBody: null, + mIcon: null, + mClickCB: null, + mCloseCB: null, + mTeardown: function teardown() { + this.mTitle = null; + this.mBody = null; + this.mIcon = null; + this.mClickCB = null; + this.mCloseCB = null; + } +}; |