tenfourfox/dom/telephony/test/marionette/test_temporary_clir.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

23 lines
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);
});