dom/media/tests/mochitest/test_dataChannel_noOffer.html

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 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     5   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     6   <script type="application/javascript" src="head.js"></script>
     7 </head>
     8 <body>
     9 <pre id="test">
    10 <script type="application/javascript">
    11   createHTML({
    12     bug: "856319",
    13     title: "Don't offer m=application unless createDataChannel is called first"
    14   });
    16   runTest(function () {
    17     var pc = new mozRTCPeerConnection();
    19     // necessary to circumvent bug 864109
    20     var options = { mandatory: { OfferToReceiveAudio: true} };
    22     pc.createOffer(function (offer) {
    23       ok(!offer.sdp.contains("m=application"),
    24         "m=application is not contained in the SDP");
    26       SimpleTest.finish();
    27     }, generateErrorCallback(), options);
    28   }, true);
    30 </script>
    31 </pre>
    32 </body>
    33 </html>

mercurial