Index: content/test/data/media/peerconnection-call.html |
diff --git a/content/test/data/media/peerconnection-call.html b/content/test/data/media/peerconnection-call.html |
index cb12d34791ac5065e41f63107bb05d168ca7efe7..d0a87070a21c1a9c1c6cd8c40f27b3f5ef894f61 100644 |
--- a/content/test/data/media/peerconnection-call.html |
+++ b/content/test/data/media/peerconnection-call.html |
@@ -283,6 +283,24 @@ |
detectVideoPlaying('remote-view-2', onCallEstablished); |
} |
+ function testCreateOfferOptions() { |
+ createConnections(null); |
+ var offerOptions = { |
+ 'offerToReceiveAudio': false, |
+ 'offerToReceiveVideo': true |
+ }; |
+ |
+ gFirstConnection.createOffer( |
+ function(offer) { |
+ assertEquals(-1, offer.sdp.search('m=audio')); |
+ assertNotEquals(-1, offer.sdp.search('m=video')); |
+ |
+ reportTestSuccess(); |
+ }, |
+ function(error) { failTest(error); }, |
+ offerOptions); |
+ } |
+ |
function enableRemoteVideo(peerConnection, enabled) { |
remoteStream = peerConnection.getRemoteStreams()[0]; |
remoteVideoTrack = remoteStream.getVideoTracks()[0]; |