mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
34 lines
710 B
JavaScript
34 lines
710 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
MARIONETTE_TIMEOUT = 60000;
|
|
MARIONETTE_HEAD_JS = 'head.js';
|
|
|
|
let number = "not a valid emergency number";
|
|
|
|
function dial() {
|
|
log("Make an outgoing call to an invalid number.");
|
|
|
|
telephony.dialEmergency(number).then(null, cause => {
|
|
log("Received promise 'reject'");
|
|
|
|
is(telephony.active, null);
|
|
is(telephony.calls.length, 0);
|
|
is(cause, "BadNumberError");
|
|
|
|
emulator.run("gsm list", function(result) {
|
|
log("Initial call list: " + result);
|
|
is(result[0], "OK");
|
|
cleanUp();
|
|
});
|
|
});
|
|
}
|
|
|
|
function cleanUp() {
|
|
finish();
|
|
}
|
|
|
|
startTest(function() {
|
|
dial();
|
|
});
|