dom/telephony/test/marionette/test_conference_two_hangup_one.js

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:9bd0f18a755f
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
3
4 MARIONETTE_TIMEOUT = 60000;
5 MARIONETTE_HEAD_JS = 'head.js';
6
7 function testConferenceTwoAndHangupOne() {
8 log('= testConferenceTwoAndHangupOne =');
9
10 let outCall;
11 let inCall;
12 let outNumber = "5555550101";
13 let inNumber = "5555550201";
14 let inInfo = gInCallStrPool(inNumber);
15
16 return Promise.resolve()
17 .then(() => gSetupConferenceTwoCalls(outNumber, inNumber))
18 .then(calls => {
19 [outCall, inCall] = calls;
20 })
21 .then(() => gHangUpCallInConference(outCall, [inCall], [], function() {
22 gCheckState(inCall, [inCall], '', []);
23 }))
24 .then(() => gCheckAll(inCall, [inCall], '', [], [inInfo.active]))
25 .then(() => gRemoteHangUpCalls([inCall]));
26 }
27
28 // Start the test
29 startTest(function() {
30 testConferenceTwoAndHangupOne()
31 .then(null, error => {
32 ok(false, 'promise rejects during test.');
33 })
34 .then(finish);
35 });

mercurial