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_modal_dialog.js | |
parent | b5b9e95e2f4c8ab19cef000c82fcfc0625c52666 (diff) |
Diffstat (limited to 'apps/system/test/unit/mock_modal_dialog.js')
-rw-r--r-- | apps/system/test/unit/mock_modal_dialog.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/apps/system/test/unit/mock_modal_dialog.js b/apps/system/test/unit/mock_modal_dialog.js deleted file mode 100644 index beb452e..0000000 --- a/apps/system/test/unit/mock_modal_dialog.js +++ /dev/null @@ -1,34 +0,0 @@ -var MockModalDialog = { - - mMethods: [ - 'alert' - ], - - mPopulate: function mmd_mPopulate() { - this.mMethods.forEach(function(methodName) { - this[methodName] = function mmd_method() { - this.mMethodCalled(methodName, Array.slice(arguments)); - }; - }, this); - }, - - init: function mmd_init() { - this.mMethods.forEach(function(methodName) { - this[methodName].mWasCalled = false; - this[methodName].mArgs = null; - }, this); - }, - - mMethodCalled: function mmd_mMethodCalled(name, args) { - this[name].mWasCalled = true; - this[name].mArgs = args; - }, - - mTeardown: function mmd_mTeardown() { - this.init(); - } -}; - -MockModalDialog.mPopulate(); - - |