Bug 823958 - followup - test case. r=allstars.chh

This commit is contained in:
Hsin-Yi Tsai 2013-05-31 10:05:39 +08:00
parent 7fbbcf9de4
commit 8da5fcbccb
2 changed files with 10 additions and 0 deletions

View File

@ -69,6 +69,11 @@ function simulateIncoming() {
telephony.oncallschanged = function oncallschanged(event) {
log("Received 'callschanged' event.");
if (!event.call) {
log("Notifying calls array is loaded. No call information accompanies.");
return;
}
let expected_states = ["incoming", "disconnected"];
ok(expected_states.indexOf(event.call.state) != -1,
"Unexpected call state: " + event.call.state);

View File

@ -69,6 +69,11 @@ function dial() {
telephony.oncallschanged = function oncallschanged(event) {
log("Received 'callschanged' call event.");
if (!event.call) {
log("Notifying calls array is loaded. No call information accompanies.");
return;
}
let expected_states = ["dialing", "disconnected"];
ok(expected_states.indexOf(event.call.state) != -1,
"Unexpected call state: " + event.call.state);