mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 844767 - B2G RIL: correct telephony marionette test_outgoing_onstatechange.js. r=allstars.chh
This commit is contained in:
parent
536ca78779
commit
7ee4e27280
@ -44,14 +44,17 @@ function dial() {
|
||||
log("Received 'onstatechange' call event.");
|
||||
|
||||
is(outgoingCall, event.call);
|
||||
is(outgoingCall.state, "alerting");
|
||||
let expectedStates = ["dialing", "alerting"];
|
||||
ok(expectedStates.indexOf(event.call.state) != -1);
|
||||
|
||||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Call list is now: " + result);
|
||||
is(result[0], "outbound to " + outNumber + " : ringing");
|
||||
is(result[1], "OK");
|
||||
answer();
|
||||
});
|
||||
if (event.call.state == "alerting") {
|
||||
runEmulatorCmd("gsm list", function(result) {
|
||||
log("Call list is now: " + result);
|
||||
is(result[0], "outbound to " + outNumber + " : ringing");
|
||||
is(result[1], "OK");
|
||||
answer();
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user