blob: bfe206c261443274646640c10fded59813c2ad01 [file] [log] [blame]
[Worker] Test createImageBitmap with invalid arguments in workers.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Starting worker: ./resources/canvas-createImageBitmap-invalid-args-in-workers.js
PASS [Worker] Rejected as expected: null
PASS [Worker] reason instanceof Error is true
[Worker] TypeError: Failed to execute 'createImageBitmap' on 'WorkerGlobalScope': The provided value is not of type '(HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or Blob or ImageData or ImageBitmap or OffscreenCanvas or VideoFrame)'
PASS [Worker] Rejected as expected: invalid area
PASS [Worker] reason instanceof Error is true
[Worker] RangeError: Failed to execute 'createImageBitmap' on 'WorkerGlobalScope': The crop rect height is 0.
PASS [Worker] Rejected as expected: invalid area
PASS [Worker] reason instanceof Error is true
[Worker] RangeError: Failed to execute 'createImageBitmap' on 'WorkerGlobalScope': The crop rect width is 0.
PASS successfullyParsed is true
TEST COMPLETE