Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
4 MARIONETTE_TIMEOUT = 60000;
5 MARIONETTE_HEAD_JS = 'head.js';
7 let number = "not a valid emergency number";
9 function dial() {
10 log("Make an outgoing call to an invalid number.");
12 telephony.dialEmergency(number).then(null, cause => {
13 log("Received promise 'reject'");
15 is(telephony.active, null);
16 is(telephony.calls.length, 0);
17 is(cause, "BadNumberError");
19 emulator.run("gsm list", function(result) {
20 log("Initial call list: " + result);
21 is(result[0], "OK");
22 cleanUp();
23 });
24 });
25 }
27 function cleanUp() {
28 finish();
29 }
31 startTest(function() {
32 dial();
33 });