Bug 1296531 - Remove deprecated MediaRecorder test. r=jesup,jib
authorAndreas Pehrson <pehrsons@gmail.com>
Thu, 17 Nov 2016 10:11:56 +0100
changeset 382971 43a5598d0fc68ad36d2eb25ae6499ec73255b1b9
parent 382970 112382900659ed3238bdc548cb6fa1765be80104
child 382972 e9335ee7fdfddf2165983ab1a34478c54fa17d2f
push id52061
push userpehrsons@gmail.com
push dateTue, 26 Sep 2017 14:36:10 +0000
treeherderautoland@8448eee20c9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup, jib
bugs1296531
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1296531 - Remove deprecated MediaRecorder test. r=jesup,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>
-