Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/test/unit/mock_system_banner.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/test/unit/mock_system_banner.js')
-rw-r--r--apps/system/test/unit/mock_system_banner.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/system/test/unit/mock_system_banner.js b/apps/system/test/unit/mock_system_banner.js
new file mode 100644
index 0000000..e40d26a
--- /dev/null
+++ b/apps/system/test/unit/mock_system_banner.js
@@ -0,0 +1,13 @@
+var MockSystemBanner = {
+ show: function(message) {
+ this.mShowCount++;
+ this.mMessage = message;
+ },
+
+ mShowCount: 0,
+ mMessage: null,
+ mTeardown: function teardown() {
+ this.mShowCount = 0;
+ this.mMessage = null;
+ }
+};