зеркало из https://github.com/mozilla/gecko-dev.git
Bug 828307 - Part 5: marionette tests change. r=vyang
This commit is contained in:
Родитель
24f9e9fd25
Коммит
80bcee0463
|
@ -18,15 +18,15 @@ let telkilaNetwork = null;
|
|||
function isAndroidNetwork(network) {
|
||||
is(network.longName, "Android");
|
||||
is(network.shortName, "Android");
|
||||
is(network.mcc, 310);
|
||||
is(network.mnc, 260);
|
||||
is(network.mcc, "310");
|
||||
is(network.mnc, "260");
|
||||
}
|
||||
|
||||
function isTelkilaNetwork(network) {
|
||||
is(network.longName, "TelKila");
|
||||
is(network.shortName, "TelKila");
|
||||
is(network.mcc, 310);
|
||||
is(network.mnc, 295);
|
||||
is(network.mcc, "310");
|
||||
is(network.mnc, "295");
|
||||
}
|
||||
|
||||
function testConnectionInfo() {
|
||||
|
@ -36,7 +36,7 @@ function testConnectionInfo() {
|
|||
is(voice.emergencyCallsOnly, false);
|
||||
is(voice.roaming, false);
|
||||
isAndroidNetwork(voice.network);
|
||||
is(voice.lastKnownMcc, 310);
|
||||
is(voice.lastKnownMcc, "310");
|
||||
|
||||
let data = connection.data;
|
||||
// data.connected = true means there's an active data call which we
|
||||
|
@ -45,7 +45,7 @@ function testConnectionInfo() {
|
|||
is(data.emergencyCallsOnly, false);
|
||||
is(data.roaming, false);
|
||||
isAndroidNetwork(data.network);
|
||||
is(data.lastKnownMcc, 0);
|
||||
is(data.lastKnownMcc, null);
|
||||
|
||||
testGetNetworks();
|
||||
}
|
||||
|
|
|
@ -54,8 +54,8 @@ function setEmulatorRoaming(roaming, callback) {
|
|||
}
|
||||
|
||||
function checkValidMccMnc() {
|
||||
is(network.mcc, 310, "network.mcc");
|
||||
is(network.mnc, 260, "network.mnc");
|
||||
is(network.mcc, "310", "network.mcc");
|
||||
is(network.mnc, "260", "network.mnc");
|
||||
}
|
||||
|
||||
function waitForVoiceChange(callback) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче