зеркало из https://github.com/mozilla/gecko-dev.git
Bug 811442 - Fail out of WebTelephony tests if call(s) exist from previous test; r=jgriffin
This commit is contained in:
Родитель
650754ce74
Коммит
a272b4266e
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -127,6 +132,7 @@ function hangUp() {
|
|||
}
|
||||
|
||||
function cleanUp() {
|
||||
telephony.oncallschanged = null;
|
||||
SpecialPowers.removePermission("telephony", document);
|
||||
finish();
|
||||
}
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -153,6 +158,7 @@ function hangUp() {
|
|||
}
|
||||
|
||||
function cleanUp() {
|
||||
telephony.onincoming = null;
|
||||
SpecialPowers.removePermission("telephony", document);
|
||||
finish();
|
||||
}
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -79,6 +84,7 @@ function reject() {
|
|||
}
|
||||
|
||||
function cleanUp() {
|
||||
telephony.onincoming = null;
|
||||
SpecialPowers.removePermission("telephony", document);
|
||||
finish();
|
||||
}
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -93,6 +98,7 @@ function hangUp() {
|
|||
}
|
||||
|
||||
function cleanUp() {
|
||||
telephony.oncallschanged = null;
|
||||
SpecialPowers.removePermission("telephony", document);
|
||||
finish();
|
||||
}
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
simulateIncoming();
|
||||
if (result[0] == "OK") {
|
||||
simulateIncoming();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,12 @@ function verifyInitialState() {
|
|||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Initial call list: " + result);
|
||||
is(result[0], "OK");
|
||||
dial();
|
||||
if (result[0] == "OK") {
|
||||
dial();
|
||||
} else {
|
||||
log("Call exists from a previous test, failing out.");
|
||||
cleanUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче