tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RTCPeerConnection-perfect-negotiation.https.html (805B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <meta name="timeout" content="long">
      4 <title></title>
      5 <script src=/resources/testharness.js></script>
      6 <script src=/resources/testharnessreport.js></script>
      7 <script src="RTCPeerConnection-perfect-negotiation-helper.js"></script>
      8 <script>
      9 'use strict';
     10 
     11 promise_test_both_roles(async (t, pc) => {
     12  assert_equals(await runA("simpleConnect"), 1, "one transceiver");
     13  assert_equals(await runB("addTransceiver"), 2, "two transceivers");
     14 }, "Perfect negotiation setup connects");
     15 
     16 promise_test_both_roles(async (t, pc) => {
     17  await runBoth("addTransceiver");
     18  const [numA, numB] = await runBoth("getNumTransceivers");
     19  assert_equals(numA, 2, "two transceivers on side A");
     20  assert_equals(numB, 2, "two transceivers on side B");
     21 }, "Perfect negotiation glare");
     22 </script>