mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bc06b6fedb
* * * split test_conference.js - p4 - split test_conference
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
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 testConferenceTwoAndRemoveOne() {
|
|
log('= testConferenceTwoAndRemoveOne =');
|
|
|
|
let outCall;
|
|
let inCall;
|
|
let outNumber = "5555550101";
|
|
let inNumber = "5555550201";
|
|
let outInfo = gOutCallStrPool(outNumber);
|
|
let inInfo = gInCallStrPool(inNumber);
|
|
|
|
return Promise.resolve()
|
|
.then(() => gSetupConferenceTwoCalls(outNumber, inNumber))
|
|
.then(calls => {
|
|
[outCall, inCall] = calls;
|
|
})
|
|
.then(() => gRemoveCallInConference(outCall, [inCall], [], function() {
|
|
gCheckState(outCall, [outCall, inCall], '', []);
|
|
}))
|
|
.then(() => gCheckAll(outCall, [outCall, inCall], '', [],
|
|
[outInfo.active, inInfo.held]))
|
|
.then(() => gRemoteHangUpCalls([outCall, inCall]));
|
|
}
|
|
|
|
// Start the test
|
|
startTest(function() {
|
|
testConferenceTwoAndRemoveOne()
|
|
.then(null, error => {
|
|
ok(false, 'promise rejects during test.');
|
|
})
|
|
.then(finish);
|
|
});
|