1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/telephony/test/marionette/test_conference_three_remove_one.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + * http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 + 1.7 +MARIONETTE_TIMEOUT = 60000; 1.8 +MARIONETTE_HEAD_JS = 'head.js'; 1.9 + 1.10 +function testConferenceThreeAndRemoveOne() { 1.11 + log('= testConferenceThreeAndRemoveOne ='); 1.12 + 1.13 + let outCall; 1.14 + let inCall; 1.15 + let inCall2; 1.16 + let outNumber = "5555550101"; 1.17 + let inNumber = "5555550201"; 1.18 + let inNumber2 = "5555550202"; 1.19 + let outInfo = gOutCallStrPool(outNumber); 1.20 + let inInfo = gInCallStrPool(inNumber); 1.21 + let inInfo2 = gInCallStrPool(inNumber2); 1.22 + 1.23 + return Promise.resolve() 1.24 + .then(() => gSetupConferenceThreeCalls(outNumber, inNumber, inNumber2)) 1.25 + .then(calls => { 1.26 + [outCall, inCall, inCall2] = calls; 1.27 + }) 1.28 + .then(() => gRemoveCallInConference(outCall, [], [inCall, inCall2], 1.29 + function() { 1.30 + gCheckState(outCall, [outCall], 'held', [inCall, inCall2]); 1.31 + })) 1.32 + .then(() => gCheckAll(outCall, [outCall], 'held', [inCall, inCall2], 1.33 + [outInfo.active, inInfo.held, inInfo2.held])) 1.34 + .then(() => gRemoteHangUpCalls([outCall, inCall, inCall2])); 1.35 +} 1.36 + 1.37 +// Start the test 1.38 +startTest(function() { 1.39 + testConferenceThreeAndRemoveOne() 1.40 + .then(null, error => { 1.41 + ok(false, 'promise rejects during test.'); 1.42 + }) 1.43 + .then(finish); 1.44 +});