Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/test/unit/mock_navigator_moz_mobile_connection.js
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-02-06 13:49:14 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-02-06 13:49:14 (GMT)
commit821413607a0718156f9d25d895e89b1c3d37aa8b (patch)
tree01c285af734ed5bba64b73b489e1e0226a94a262 /apps/system/test/unit/mock_navigator_moz_mobile_connection.js
parentc110fb485b3af0066c6df7aeac8c055e9d767efa (diff)
Copy various bits from gaia
Diffstat (limited to 'apps/system/test/unit/mock_navigator_moz_mobile_connection.js')
-rw-r--r--apps/system/test/unit/mock_navigator_moz_mobile_connection.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/system/test/unit/mock_navigator_moz_mobile_connection.js b/apps/system/test/unit/mock_navigator_moz_mobile_connection.js
new file mode 100644
index 0000000..fb05aaa
--- /dev/null
+++ b/apps/system/test/unit/mock_navigator_moz_mobile_connection.js
@@ -0,0 +1,21 @@
+'use strict';
+
+(function() {
+
+ var props = ['voice', 'cardState', 'iccInfo', 'data'];
+
+ function mnmmc_init() {
+ props.forEach(function(prop) {
+ Mock[prop] = null;
+ });
+ }
+
+ var Mock = {
+ addEventListener: function() {},
+ mTeardown: mnmmc_init
+ };
+
+ mnmmc_init();
+
+ window.MockNavigatorMozMobileConnection = Mock;
+})();