diff options
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.js | 21 |
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; +})(); |