Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/test/unit/mock_l10n.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/test/unit/mock_l10n.js')
-rw-r--r--apps/system/test/unit/mock_l10n.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/system/test/unit/mock_l10n.js b/apps/system/test/unit/mock_l10n.js
new file mode 100644
index 0000000..35b01d8
--- /dev/null
+++ b/apps/system/test/unit/mock_l10n.js
@@ -0,0 +1,17 @@
+'use strict';
+
+var MockL10n = {
+ get: function get(key, params) {
+ if (params) {
+ return key + JSON.stringify(params);
+ }
+ return key;
+ },
+ DateTimeFormat: function() {}
+};
+
+MockL10n.DateTimeFormat.prototype = {
+ localeFormat: function mockLocaleFormat(time, strFormat) {
+ return '' + time;
+ }
+};