mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
29 lines
692 B
JavaScript
29 lines
692 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';
|
|
|
|
function testConferenceTwoCalls() {
|
|
log('= testConferenceTwoCalls =');
|
|
|
|
let outCall;
|
|
let inCall;
|
|
let outNumber = "5555550101";
|
|
let inNumber = "5555550201";
|
|
|
|
return Promise.resolve()
|
|
.then(() => gSetupConference([outNumber, inNumber]))
|
|
.then(calls => {
|
|
[outCall, inCall] = calls;
|
|
})
|
|
.then(() => gRemoteHangUpCalls([outCall, inCall]));
|
|
}
|
|
|
|
// Start the test
|
|
startTest(function() {
|
|
testConferenceTwoCalls()
|
|
.catch(error => ok(false, "Promise reject: " + error))
|
|
.then(finish);
|
|
});
|