mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 06:06:48 +00:00
LibWeb: Add OffscreenCanvas to ImageBitmap invalid-types-no-crash test
This commit is contained in:
parent
3bce1934b1
commit
8d1c860fcd
Notes:
github-actions[bot]
2025-06-30 18:37:05 +00:00
Author: https://github.com/ayeteadoe
Commit: 8d1c860fcd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5251
Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 4 additions and 0 deletions
|
@ -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
|
|
@ -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"],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue