Bug 1296531 - Remove deprecated MediaRecorder test. r?jib draft
authorAndreas Pehrson <pehrsons@gmail.com>
Thu, 17 Nov 2016 10:11:56 +0100
changeset 670293 00f3560b619b053cbd3421cd7e93c6ec7bc4f8ab
parent 670292 b09e4864c58c1b274da66995d9102c586ca5a699
child 670294 f27e84e80c0a84515535045b0ef6ba71ac6e07a3
push id81598
push userbmo:apehrson@mozilla.com
push dateTue, 26 Sep 2017 09:13:19 +0000
reviewersjib
bugs1296531
milestone58.0a1
Bug 1296531 - Remove deprecated MediaRecorder test. r?jib This test stops a stream and checks MediaRecorder events when trying to record it. However, streams can't be stopped anymore (they go inactive), so there's nothing left for this test do do. MozReview-Commit-ID: 3pLlhLzBkNA
dom/media/test/mochitest.ini
dom/media/test/test_mediarecorder_record_stopms.html
--- a/dom/media/test/mochitest.ini
+++ b/dom/media/test/mochitest.ini
@@ -875,19 +875,16 @@ tags=msg capturestream
 [test_mediarecorder_record_no_timeslice.html]
 skip-if = android_version == '17' # bug 1306513, android(bug 1232305)
 tags=msg capturestream
 [test_mediarecorder_record_session.html]
 skip-if = android_version == '17' # android(bug 1232305)
 tags=msg capturestream
 [test_mediarecorder_record_startstopstart.html]
 tags=msg
-[test_mediarecorder_record_stopms.html]
-skip-if = android_version == '17' # android(bug 1232305)
-tags=msg
 [test_mediarecorder_record_timeslice.html]
 skip-if = android_version == '17' # bug 1329440, android(bug 1232305)
 tags=msg capturestream
 [test_mediarecorder_reload_crash.html]
 skip-if = android_version == '17' # android(bug 1232305)
 tags=msg capturestream
 [test_mediarecorder_unsupported_src.html]
 tags=msg
deleted file mode 100644
--- a/dom/media/test/test_mediarecorder_record_stopms.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test MediaRecorder Record Stopped Stream</title>
-  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
-</head>
-<body>
-<pre id="test">
-<div id="content" style="display: none">
-  <audio id="testAudio"></audio>
-</div>
-<script class="testbody" type="text/javascript">
-
-function startTest() {
-  navigator.mozGetUserMedia({audio: true, fake: true}, function(stream) {
-    var testAudio = document.getElementById('testAudio');
-
-    testAudio.onended = function() {
-      var mediaRecorder = new MediaRecorder(stream);
-      try {
-        mediaRecorder.start();
-        ok(false, 'Recording a stopped stream failed to throw an exception');
-      } catch (e) {
-        is(e.name, 'InvalidStateError',
-           'Recording a stopped stream threw an InvalidStateError');
-      } finally {
-        SimpleTest.finish();
-      }
-    };
-
-    testAudio.mozSrcObject = stream;
-    testAudio.play();
-    stream.stop();
-  }, function(err) {
-    ok(false, 'Unexpected error fired with: ' + err);
-    SimpleTest.finish();
-  });
-}
-
-SimpleTest.waitForExplicitFinish();
-startTest();
-</script>
-</pre>
-</body>
-</html>
-