Bug 1569645 - Add crashtest. r=bryce

Differential Revision: https://phabricator.services.mozilla.com/D40647

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-08-05 15:56:04 +00:00
parent 6f14615c8c
commit 5d91259b9f
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<html>
<head>
<script>
function start () {
const canvas = document.getElementById("c")
canvas.getContext("2d")
const video = canvas.captureStream()
const ac = new AudioContext()
const dest = ac.createMediaStreamDestination()
const recorder = new MediaRecorder(
new MediaStream([...video.getTracks(), ...dest.stream.getTracks()]), {
'mimeType': 'audio/ogg'
})
recorder.start()
}
window.addEventListener('load', start)
</script>
</head>
<body>
<canvas id="c"></canvas>
</body>
</html>

View File

@ -128,3 +128,4 @@ test-pref(media.autoplay.block-webaudio,false) load 1545133.html
load track-with-zero-dimensions.mp4 # Bug 1542539
load 1560215.html
load 1547899.html
load 1569645.html