mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
canvas: Add OffscreenCanvas 'convertToBlob' method (#37786)
Follow the HTML speficication and add missing 'convertToBlob' method to OffscreenCanvas interface. https://html.spec.whatwg.org/multipage/#dom-offscreencanvas-converttoblob Testing: Improvements in the following tests - html/canvas/offscreen/manual/convert-to-blob/offscreencanvas.convert.to.blob* - html/canvas/offscreen/manual/wide-gamut-canvas/2d.color.space.p3.convertToBlobp3.canvas.html Fixes: #24272 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
parent
3ba5b89ef2
commit
6ba54e4d79
11 changed files with 187 additions and 187 deletions
|
@ -1,22 +1,3 @@
|
|||
[offscreencanvas.convert.to.blob.html]
|
||||
[Test that convertToBlob with webp produces correct result]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with default type produces correct result]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with png produces correct result]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with jpge produces correct result]
|
||||
expected: FAIL
|
||||
|
||||
[Test that call convertToBlob on a OffscreenCanvas with size 0 throws exception]
|
||||
expected: FAIL
|
||||
|
||||
[Test that call convertToBlob on a detached OffscreenCanvas throws exception]
|
||||
expected: FAIL
|
||||
|
||||
[Test that call convertToBlob on a OffscreenCanvas with tainted origin throws exception]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,43 +1,4 @@
|
|||
[offscreencanvas.convert.to.blob.w.html]
|
||||
expected: ERROR
|
||||
[Test that convertToBlob with jpeg/default quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with png/0.2 quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with webp/1.0 quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that call convertToBlob on a OffscreenCanvas with size 0 throws exception in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with png/1.0 quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with default type/1.0 quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with jpeg/1.0 quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with webp/0.2 quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with webp/default quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that call convertToBlob on a detached OffscreenCanvas throws exception in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with jpeg/0.2 quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with default type/0.2 quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with png/default quality produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
||||
[Test that convertToBlob with default arguments produces correct result in a worker]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[2d.color.space.p3.convertToBlobp3.canvas.html]
|
||||
[test if toblob returns p3 data from p3 color space canvas]
|
||||
expected: FAIL
|
|
@ -29,9 +29,6 @@
|
|||
[OffscreenCanvas interface: operation transferToImageBitmap()]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvas interface: operation convertToBlob(optional ImageEncodeOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvas interface: attribute oncontextlost]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -4373,9 +4373,6 @@
|
|||
[OffscreenCanvas interface: operation transferToImageBitmap()]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvas interface: operation convertToBlob(optional ImageEncodeOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[OffscreenCanvas interface: attribute oncontextlost]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue