diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/tethering/tests/marionette/test_wifi_tethering_dun.js | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/tethering/tests/marionette/test_wifi_tethering_dun.js')
-rw-r--r-- | dom/tethering/tests/marionette/test_wifi_tethering_dun.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dom/tethering/tests/marionette/test_wifi_tethering_dun.js b/dom/tethering/tests/marionette/test_wifi_tethering_dun.js new file mode 100644 index 000000000..3d93cf8d3 --- /dev/null +++ b/dom/tethering/tests/marionette/test_wifi_tethering_dun.js @@ -0,0 +1,37 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +MARIONETTE_TIMEOUT = 60000; +MARIONETTE_HEAD_JS = 'head.js'; + +gTestSuite.startTest(function() { + let origApnSettings; + return gTestSuite.getDataApnSettings() + .then(value => { + origApnSettings = value; + }) + .then(() => { + // Set dun apn settings. + let apnSettings = [[ { "carrier": "T-Mobile US", + "apn": "epc1.tmobile.com", + "mmsc": "http://mms.msg.eng.t-mobile.com/mms/wapenc", + "types": ["default","supl","mms"] }, + { "carrier": "T-Mobile US", + "apn": "epc2.tmobile.com", + "types": ["dun"] } ]]; + return gTestSuite.setDataApnSettings(apnSettings); + }) + .then(() => gTestSuite.setTetheringDunRequired()) + .then(() => gTestSuite.startTetheringTest(function() { + return gTestSuite.ensureWifiEnabled(false) + .then(() => gTestSuite.setWifiTetheringEnabled(true, true)) + .then(() => gTestSuite.setWifiTetheringEnabled(false, true)); + })) + // Restore apn settings. + .then(() => { + if (origApnSettings) { + return gTestSuite.setDataApnSettings(origApnSettings); + } + }); +});
\ No newline at end of file |