gecko-dev/dom/media/tests/mochitest/test_dataChannel_noOffer.html
Martin Thomson afdaddf1d7 Bug 1155923 - Removing moz prefix from RTC interfaces, r=jesup,smaug
--HG--
extra : transplant_source : %0Adu%1E%A6j%9E%C2B%25%ECruo%F7%7Fc%EA%99%18
2015-09-28 11:25:04 -07:00

33 lines
704 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<script type="application/javascript" src="pc.js"></script>
</head>
<body>
<pre id="test">
<script type="application/javascript">
createHTML({
bug: "856319",
title: "Don't offer m=application unless createDataChannel is called first"
});
runNetworkTest(function () {
var pc = new RTCPeerConnection();
// necessary to circumvent bug 864109
var options = { offerToReceiveAudio: true };
pc.createOffer(options).then(offer => {
ok(!offer.sdp.includes("m=application"),
"m=application is not contained in the SDP");
networkTestFinished();
})
.catch(generateErrorCallback());
});
</script>
</pre>
</body>
</html>