Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/test/unit/mock_asyncStorage.js
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-02-06 16:36:20 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-02-06 16:36:20 (GMT)
commit66dae0ccbc23f4df612711a2e61fadd9b15feb91 (patch)
treea069ef55f4d97b6419f38d8ce86eb19f5cc1f1e7 /apps/system/test/unit/mock_asyncStorage.js
parentb5b9e95e2f4c8ab19cef000c82fcfc0625c52666 (diff)
Empty the system pluginHEADmaster
Diffstat (limited to 'apps/system/test/unit/mock_asyncStorage.js')
-rw-r--r--apps/system/test/unit/mock_asyncStorage.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/apps/system/test/unit/mock_asyncStorage.js b/apps/system/test/unit/mock_asyncStorage.js
deleted file mode 100644
index a657e8b..0000000
--- a/apps/system/test/unit/mock_asyncStorage.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-
-var MockasyncStorage = {
- mItems: {},
-
- setItem: function(key, value, callback) {
- this.mItems[key] = value;
- if (typeof callback === 'function') {
- callback();
- }
- },
-
- getItem: function(key, callback) {
- var value = this.mItems[key];
- // use '|| null' will turn a 'false' to null
- if (value === undefined)
- value = null;
- if (typeof callback === 'function') {
- callback(value);
- }
- },
-
- removeItem: function(key, callback) {
- if (key in this.mItems) {
- delete this.mItems[key];
- }
-
- if (typeof callback === 'function') {
- callback();
- }
- },
-
- mTeardown: function() {
- this.mItems = {};
- }
-};