Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
4 MARIONETTE_TIMEOUT = 60000;
5 MARIONETTE_HEAD_JS = 'head.js';
7 function testConferenceTwoAndHangupOne() {
8 log('= testConferenceTwoAndHangupOne =');
10 let outCall;
11 let inCall;
12 let outNumber = "5555550101";
13 let inNumber = "5555550201";
14 let inInfo = gInCallStrPool(inNumber);
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 }
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 });