зеркало из https://github.com/mozilla/gecko-dev.git
23 строки
554 B
JavaScript
23 строки
554 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';
|
|
|
|
const clirPrefix = "*31#";
|
|
const number = "0912345678";
|
|
|
|
startTest(function() {
|
|
let outCall;
|
|
|
|
telephony.dial(clirPrefix + number).then(call => {
|
|
outCall = call;
|
|
|
|
ok(call);
|
|
is(call.id.number, number); // Should display the number w/o clir prefix.
|
|
})
|
|
.then(() => gRemoteHangUp(outCall))
|
|
.catch(error => ok(false, "Promise reject: " + error))
|
|
.then(finish);
|
|
});
|