mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 823958 - followup - test case. r=allstars.chh
This commit is contained in:
parent
7fbbcf9de4
commit
8da5fcbccb
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user