Bug 1013890 - a new test case which keeps testing the old logic for data channel tests. r=jib

This commit is contained in:
Nils Ohlmeier [:drno] 2014-06-02 17:23:00 +02:00
parent 16a47b8283
commit 8c9d3bf458
2 changed files with 33 additions and 0 deletions

View File

@ -19,6 +19,8 @@ skip-if = os == 'mac' || toolkit=='gonk' # b2g(Bug 960442, video support for Web
skip-if = os == 'mac' || toolkit=='gonk' # b2g(Bug 960442, video support for WebRTC is disabled on b2g) b2g-debug(Bug 960442, video support for WebRTC is disabled on b2g)
[test_dataChannel_basicDataOnly.html]
[test_dataChannel_basicVideo.html]
skip-if = toolkit=='gonk' # b2g emulator seems to bee too slow (Bug 1016498 and 1008080)
[test_dataChannel_bug1013809.html]
skip-if = toolkit=='gonk' # b2g(Bug 960442, video support for WebRTC is disabled on b2g) b2g-debug(Bug 960442, video support for WebRTC is disabled on b2g)
[test_dataChannel_noOffer.html]
[test_getUserMedia_basicAudio.html]

View File

@ -0,0 +1,31 @@
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="head.js"></script>
<script type="application/javascript" src="pc.js"></script>
<script type="application/javascript" src="templates.js"></script>
<script type="application/javascript" src="turnConfig.js"></script>
</head>
<body>
<pre id="test">
<script type="application/javascript">
createHTML({
bug: "796895",
title: "Basic data channel audio connection"
});
var test;
runTest(function () {
test = new DataChannelTest();
var sld = test.chain.remove("PC_REMOTE_SET_LOCAL_DESCRIPTION");
test.chain.insertAfter("PC_LOCAL_SET_REMOTE_DESCRIPTION", sld);
test.setMediaConstraints([{audio: true}], [{audio: true}]);
test.run();
}, true);
</script>
</pre>
</body>
</html>