Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/test/unit/mock_custom_dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/test/unit/mock_custom_dialog.js')
-rw-r--r--apps/system/test/unit/mock_custom_dialog.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/system/test/unit/mock_custom_dialog.js b/apps/system/test/unit/mock_custom_dialog.js
new file mode 100644
index 0000000..ed4b927
--- /dev/null
+++ b/apps/system/test/unit/mock_custom_dialog.js
@@ -0,0 +1,26 @@
+var MockCustomDialog = {
+ show: function(title, msg, cancel, confirm) {
+ this.mShown = true;
+ this.mShowedTitle = title;
+ this.mShowedMsg = msg;
+ this.mShowedCancel = cancel;
+ this.mShowedConfirm = confirm;
+ },
+
+ hide: function() {
+ this.mShown = false;
+ },
+
+ mShown: false,
+ mShowedTitle: null,
+ mShowedMsg: null,
+ mShowedCancel: null,
+ mShowedConfirm: null,
+ mTeardown: function teardown() {
+ this.mShown = false;
+ this.mShowedTitle = null;
+ this.mShowedMsg = null;
+ this.mShowedCancel = null;
+ this.mShowedConfirm = null;
+ }
+};