1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/telephony/test/marionette/test_conference_two_calls.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 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 testConferenceTwoCalls() { 1.11 + log('= testConferenceTwoCalls ='); 1.12 + 1.13 + let outCall; 1.14 + let inCall; 1.15 + let outNumber = "5555550101"; 1.16 + let inNumber = "5555550201"; 1.17 + 1.18 + return Promise.resolve() 1.19 + .then(() => gSetupConferenceTwoCalls(outNumber, inNumber)) 1.20 + .then(calls => { 1.21 + [outCall, inCall] = calls; 1.22 + }) 1.23 + .then(() => gRemoteHangUpCalls([outCall, inCall])); 1.24 +} 1.25 + 1.26 +// Start the test 1.27 +startTest(function() { 1.28 + testConferenceTwoCalls() 1.29 + .then(null, error => { 1.30 + ok(false, 'promise rejects during test.'); 1.31 + }) 1.32 + .then(finish); 1.33 +});