Bug 811442 - Fail out of WebTelephony tests if call(s) exist from previous test; r=jgriffin

This commit is contained in:
Rob Wood 2012-11-13 14:05:27 -08:00
Родитель 650754ce74
Коммит a272b4266e
29 изменённых файлов: 178 добавлений и 29 удалений

Просмотреть файл

@ -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();
}
});
}