|
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 }); |
|
15 |
|
16 runTest(function () { |
|
17 var pc = new mozRTCPeerConnection(); |
|
18 |
|
19 // necessary to circumvent bug 864109 |
|
20 var options = { mandatory: { OfferToReceiveAudio: true} }; |
|
21 |
|
22 pc.createOffer(function (offer) { |
|
23 ok(!offer.sdp.contains("m=application"), |
|
24 "m=application is not contained in the SDP"); |
|
25 |
|
26 SimpleTest.finish(); |
|
27 }, generateErrorCallback(), options); |
|
28 }, true); |
|
29 |
|
30 </script> |
|
31 </pre> |
|
32 </body> |
|
33 </html> |