Bug 1696511 - Add crashtest. r=padenot

Differential Revision: https://phabricator.services.mozilla.com/D176412
This commit is contained in:
Andreas Pehrson 2023-04-25 15:06:03 +00:00
parent c9aadc914c
commit 09f23c0370
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html class='reftest-wait'>
<head>
<script>
document.addEventListener('DOMContentLoaded', async () => {
const canvas = document.createElement('canvas')
canvas.height = 27530
const context = canvas.getContext('2d')
context.strokeRect(5, 5, canvas.width - 5, canvas.height - 5)
const stream = canvas.captureStream()
const recorder = new MediaRecorder(stream)
recorder.start()
const stopped = new Promise(r => recorder.onstop = r)
await new Promise(r => setTimeout(r, 100))
stream.getTracks().forEach(t => t.stop())
await stopped
document.documentElement.removeAttribute("class")
})
</script>
</head>
</html>

View File

@ -146,6 +146,7 @@ load mp4_box_emptyrange.mp4 # Bug 1667480
load 1673526-1.html
load 1673526-2.html
load 1693043.html
load 1696511.html
load 1697521.html
load 1708790.html
skip-if(cocoaWidget) load 1709130.html # video failed decoding on MacOS, 1709684