dom/media/tests/mochitest/test_dataChannel_noOffer.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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