зеркало из https://github.com/mozilla/gecko-dev.git
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 --HG-- extra : rebase_source : 7c159fa2be96aa99ca22e0530ee0f79395a00491 extra : source : 038e8eecd3dd50bcc1e50d5e41f8266e3ace0c39
This commit is contained in:
Родитель
63142392a5
Коммит
510bc537bc
|
@ -880,9 +880,6 @@ 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
|
||||
|
|
|
@ -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>
|
||||
|
Загрузка…
Ссылка в новой задаче