gecko/dom/media/tests/mochitest/test_peerConnection_basicAudioVideoNoBundle.html
Martin Thomson f55f1ca12b Bug 1119593 - Aggressively removing boilerplate on tests, r=drno
Conflicts:
	dom/media/tests/mochitest/test_getUserMedia_exceptions.html

--HG--
extra : rebase_source : 61d146fe146021d9114a67d6577ca749b30e2d69
2015-01-28 14:05:57 -08:00

35 lines
888 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: "1016476",
title: "Basic audio/video peer connection with no Bundle"
});
runNetworkTest(options => {
var test = new PeerConnectionTest(options);
test.chain.insertAfter(
'PC_LOCAL_CREATE_OFFER',
[
function PC_LOCAL_REMOVE_BUNDLE_FROM_OFFER(test) {
test.originalOffer.sdp = test.originalOffer.sdp.replace(
/a=group:BUNDLE .*\r\n/g,
""
);
info("Updated no bundle offer: " + JSON.stringify(test.originalOffer));
}
]);
test.setMediaConstraints([{audio: true}, {video: true}],
[{audio: true}, {video: true}]);
test.run();
});
</script>
</pre>
</body>
</html>