dom/telephony/test/marionette/test_conference_two_hangup_one.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 });

mercurial