LibWeb: Add OffscreenCanvas to ImageBitmap invalid-types-no-crash test

This commit is contained in:
ayeteadoe 2025-06-30 10:22:01 -07:00 committed by Andrew Kaster
commit 8d1c860fcd
Notes: github-actions[bot] 2025-06-30 18:37:05 +00:00
2 changed files with 4 additions and 0 deletions

View file

@ -4,4 +4,5 @@ HTMLImageElement [ Error ]: InvalidStateError: image argument is not usable
SVGImageElement [ Error ]: InvalidStateError: image argument is not usable SVGImageElement [ Error ]: InvalidStateError: image argument is not usable
HTMLCanvasElement [ Error ]: Error: Not Implemented: createImageBitmap() for HTMLCanvasElement HTMLCanvasElement [ Error ]: Error: Not Implemented: createImageBitmap() for HTMLCanvasElement
ImageBitmap [ Error ]: TypeError: No union types matched ImageBitmap [ Error ]: TypeError: No union types matched
OffscreenCanvas [ Error ]: Error: Not Implemented: createImageBitmap() for OffscreenCanvas
HTMLVideoElement [ Error ]: InvalidStateError: image argument is not usable HTMLVideoElement [ Error ]: InvalidStateError: image argument is not usable

View file

@ -17,6 +17,8 @@
let svgImg = document.createElement("img"); let svgImg = document.createElement("img");
svgImg = document.createElementNS("http://www.w3.org/2000/svg", "image"); svgImg = document.createElementNS("http://www.w3.org/2000/svg", "image");
let offscreenCanvas = new OffscreenCanvas(42, 42);
let video = document.createElement("video"); let video = document.createElement("video");
let file = new Blob([ let file = new Blob([
new Uint8Array([ new Uint8Array([
@ -32,6 +34,7 @@
[svgImg, "SVGImageElement"], [svgImg, "SVGImageElement"],
[canvas, "HTMLCanvasElement"], [canvas, "HTMLCanvasElement"],
[imageBitmap, "ImageBitmap"], [imageBitmap, "ImageBitmap"],
[offscreenCanvas, "OffscreenCanvas"],
[video, "HTMLVideoElement"], [video, "HTMLVideoElement"],
]; ];