diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-02-06 16:36:20 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-02-06 16:36:20 (GMT) |
commit | 66dae0ccbc23f4df612711a2e61fadd9b15feb91 (patch) | |
tree | a069ef55f4d97b6419f38d8ce86eb19f5cc1f1e7 /apps/system/test/unit/mock_statusbar.js | |
parent | b5b9e95e2f4c8ab19cef000c82fcfc0625c52666 (diff) |
Diffstat (limited to 'apps/system/test/unit/mock_statusbar.js')
-rw-r--r-- | apps/system/test/unit/mock_statusbar.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/apps/system/test/unit/mock_statusbar.js b/apps/system/test/unit/mock_statusbar.js deleted file mode 100644 index 8813a3b..0000000 --- a/apps/system/test/unit/mock_statusbar.js +++ /dev/null @@ -1,36 +0,0 @@ -var MockStatusBar = { - notificationsCount: null, - - wasMethodCalled: {}, - - methodCalled: function msb_methodCalled(name) { - this.wasMethodCalled[name] = - this.wasMethodCalled[name] ? this.wasMethodCalled[name]++ : 1; - }, - - updateNotification: function(count) { - var number = new Number(count); - this.notificationsCount = number.toString(); - this.methodCalled('updateNotification'); - }, - - updateNotificationUnread: function(unread) { - this.mNotificationUnread = unread; - }, - - mNotificationUnread: false, - mTeardown: function teardown() { - this.notificationsCount = null; - this.mNotificationsUpdated = false; - this.mNotificationUnread = false; - this.wasMethodCalled = {}; - }, - - incSystemDownloads: function msb_incSystemDownloads() { - this.methodCalled('incSystemDownloads'); - }, - - decSystemDownloads: function msb_decSystemDownloads() { - this.methodCalled('decSystemDownloads'); - } -}; |