Backed out changeset 1978000eae5e (bug 1294605)

--HG--
extra : source : 45b00bb6727a744bdc733578297418df6c9b1b58
This commit is contained in:
Sebastian Hengst 2016-10-20 20:03:16 +02:00
parent aa0990718c
commit fa35a48d74
2 changed files with 0 additions and 31 deletions

View File

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

View File

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