mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Backed out changeset 1978000eae5e (bug 1294605
)
--HG-- extra : source : 45b00bb6727a744bdc733578297418df6c9b1b58
This commit is contained in:
parent
aa0990718c
commit
fa35a48d74
@ -80,7 +80,6 @@ skip-if = android_version == '18' # android(Bug 1189784, timeouts on 4.3 emulato
|
||||
[test_getUserMedia_stopVideoAudioStreamWithFollowupVideoAudio.html]
|
||||
[test_getUserMedia_stopVideoStream.html]
|
||||
[test_getUserMedia_stopVideoStreamWithFollowupVideo.html]
|
||||
[test_getUserMedia_trackCloneCleanup.html]
|
||||
[test_getUserMedia_trackEnded.html]
|
||||
[test_getUserMedia_peerIdentity.html]
|
||||
[test_peerConnection_addIceCandidate.html]
|
||||
|
@ -1,30 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script type="application/javascript" src="mediaStreamPlayback.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
"use strict";
|
||||
|
||||
createHTML({
|
||||
title: "Stopping a MediaStreamTrack and its clones should deallocate the device",
|
||||
bug: "1294605"
|
||||
});
|
||||
|
||||
runTest(() => getUserMedia({audio: true, video: true}).then(stream => {
|
||||
let clone = stream.clone();
|
||||
stream.getTracks().forEach(t => t.stop());
|
||||
stream.clone().getTracks().forEach(t => stream.addTrack(t));
|
||||
is(stream.getTracks().filter(t => t.readyState == "live").length, 0,
|
||||
"Cloning ended tracks should make them ended");
|
||||
[...stream.getTracks(), ...clone.getTracks()].forEach(t => t.stop());
|
||||
|
||||
// Bug 1295352: better to be explicit about noGum here wrt future refactoring.
|
||||
return noGum();
|
||||
}));
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user