Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/test/unit/mock_modal_dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/test/unit/mock_modal_dialog.js')
-rw-r--r--apps/system/test/unit/mock_modal_dialog.js34
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();
-
-