Commit 242f2a69 authored by Andreas Pehrson's avatar Andreas Pehrson
Browse files

Bug 1631476 - Update crashtest to use canvas method that actually draws something. r=jib

With the fix for this bug context.scale(64, 64) no longer results in a frame
capture. I have tested 19cf79b6f07d as reported in bug 1560215 and it reproduces
the original crash with this test change.

Differential Revision: https://phabricator.services.mozilla.com/D94046
parent 4ea51443
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@
      async function start () {
        const canvas = document.createElement('canvas')
        const context = canvas.getContext('2d')
        context.scale(64, 64)
        context.fillStyle = "red"
        context.fillRect(0, 0, 1, 1)
        const recorder = new MediaRecorder(
          canvas.captureStream(), { videoBitsPerSecond: 16 })
        recorder.start(100)