Bug 1010670 - allow test_peerConnection_basic* to be executed by steeplechase. r=ted
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Wed, 14 May 2014 21:17:00 +0200
changeset 183437 8392628b4232ac47a2d17753b47219e3bcef5134
parent 183436 2d50053fec04526614967cc7149723f7b4b56966
child 183438 75b0548333cabf265cd99d13332af04e77b90b46
push idunknown
push userunknown
push dateunknown
reviewersted
bugs1010670
milestone32.0a1
Bug 1010670 - allow test_peerConnection_basic* to be executed by steeplechase. r=ted
dom/media/tests/mochitest/test_peerConnection_basicAudioVideo.html
dom/media/tests/mochitest/test_peerConnection_basicAudioVideoCombined.html
dom/media/tests/mochitest/test_peerConnection_basicVideo.html
--- a/dom/media/tests/mochitest/test_peerConnection_basicAudioVideo.html
+++ b/dom/media/tests/mochitest/test_peerConnection_basicAudioVideo.html
@@ -13,18 +13,18 @@
 <script type="application/javascript">
 
   createHTML({
     bug: "796890",
     title: "Basic audio/video (separate) peer connection"
   });
 
   var test;
-  runTest(function () {
-    test = new PeerConnectionTest();
+  runTest(function (options) {
+    test = new PeerConnectionTest(options);
     test.setMediaConstraints([{audio: true}, {video: true}],
                              [{audio: true}, {video: true}]);
     test.run();
   });
 </script>
 </pre>
 </body>
 </html>
--- a/dom/media/tests/mochitest/test_peerConnection_basicAudioVideoCombined.html
+++ b/dom/media/tests/mochitest/test_peerConnection_basicAudioVideoCombined.html
@@ -13,18 +13,18 @@
 <script type="application/javascript">
 
   createHTML({
     bug: "796890",
     title: "Basic audio/video (combined) peer connection"
   });
 
   var test;
-  runTest(function () {
-    test = new PeerConnectionTest();
+  runTest(function (options) {
+    test = new PeerConnectionTest(options);
     test.setMediaConstraints([{audio: true, video: true}],
                              [{audio: true, video: true}]);
     test.run();
   });
 </script>
 </pre>
 </body>
 </html>
--- a/dom/media/tests/mochitest/test_peerConnection_basicVideo.html
+++ b/dom/media/tests/mochitest/test_peerConnection_basicVideo.html
@@ -12,17 +12,17 @@
 <pre id="test">
 <script type="application/javascript">
   createHTML({
     bug: "796888",
     title: "Basic video-only peer connection"
   });
 
   var test;
-  runTest(function () {
-    test = new PeerConnectionTest();
+  runTest(function (options) {
+    test = new PeerConnectionTest(options);
     test.setMediaConstraints([{video: true}], [{video: true}]);
     test.run();
   });
 </script>
 </pre>
 </body>
 </html>