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
--- 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>
-