dom/media/tests/mochitest/test_dataChannel_noOffer.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/media/tests/mochitest/test_dataChannel_noOffer.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     1.8 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     1.9 +  <script type="application/javascript" src="head.js"></script>
    1.10 +</head>
    1.11 +<body>
    1.12 +<pre id="test">
    1.13 +<script type="application/javascript">
    1.14 +  createHTML({
    1.15 +    bug: "856319",
    1.16 +    title: "Don't offer m=application unless createDataChannel is called first"
    1.17 +  });
    1.18 +
    1.19 +  runTest(function () {
    1.20 +    var pc = new mozRTCPeerConnection();
    1.21 +
    1.22 +    // necessary to circumvent bug 864109
    1.23 +    var options = { mandatory: { OfferToReceiveAudio: true} };
    1.24 +
    1.25 +    pc.createOffer(function (offer) {
    1.26 +      ok(!offer.sdp.contains("m=application"),
    1.27 +        "m=application is not contained in the SDP");
    1.28 +
    1.29 +      SimpleTest.finish();
    1.30 +    }, generateErrorCallback(), options);
    1.31 +  }, true);
    1.32 +
    1.33 +</script>
    1.34 +</pre>
    1.35 +</body>
    1.36 +</html>

mercurial