tor-browser

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

test_peerConnection_bug1042791.html (992B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <script type="application/javascript" src="pc.js"></script>
      5 </head>
      6 <body>
      7 <pre id="test">
      8 <script type="application/javascript">
      9  createHTML({
     10    bug: "1040346",
     11    title: "Basic H.264 GMP video-only peer connection"
     12  });
     13 
     14  var test;
     15  runNetworkTest(function (options) {
     16    options = options || { };
     17    options.h264 = true;
     18    test = new PeerConnectionTest(options);
     19    test.setMediaConstraints([{video: true}], [{video: true}]);
     20    test.chain.removeAfter("PC_LOCAL_CREATE_OFFER");
     21 
     22    test.chain.append([
     23      function PC_LOCAL_VERIFY_H264_OFFER(test) {
     24        ok(!test.pcLocal._latest_offer.sdp.toLowerCase().includes("profile-level-id=0x42e0"),
     25           "H264 offer does not contain profile-level-id=0x42e0");
     26        ok(test.pcLocal._latest_offer.sdp.toLowerCase().includes("profile-level-id=42e0"),
     27           "H264 offer contains profile-level-id=42e0");
     28      }
     29    ]);
     30 
     31    return test.run();
     32  });
     33 </script>
     34 </pre>
     35 </body>
     36 </html>