mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement HTMLCanvasElement.toBlob (#34938)
This refactors some of the code that is shared with toDataURL, and updates the webidl definition to match the current spec (using a default value for the mime type). Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
9aaa6934b7
commit
44d1e2ae0d
13 changed files with 206 additions and 130 deletions
|
@ -1,3 +0,0 @@
|
|||
[2d.color.space.p3.toBlob.p3.canvas.html]
|
||||
[test if toblob returns p3 data from p3 color space canvas]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[2d.color.space.p3.toBlob.with.putImageData.html]
|
||||
[Use putImageData to put some p3 data in canvas and test if toBlob returns the same data]
|
||||
expected: FAIL
|
|
@ -7915,18 +7915,9 @@
|
|||
[HTMLSlotElement interface: calling assign((Element or Text)...) on document.createElement("slot") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLCanvasElement interface: operation toBlob(BlobCallback, optional DOMString, optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLCanvasElement interface: operation transferControlToOffscreen()]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLCanvasElement interface: document.createElement("canvas") must inherit property "toBlob(BlobCallback, optional DOMString, optional any)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLCanvasElement interface: calling toBlob(BlobCallback, optional DOMString, optional any) on document.createElement("canvas") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLCanvasElement interface: document.createElement("canvas") must inherit property "transferControlToOffscreen()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[toBlob-cross-realm-callback-report-exception.html]
|
||||
[toBlob() reports the exception from its callback in the callback's global object]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[toBlob.jpeg.html]
|
||||
[toBlob with image/jpeg returns a JPEG Blob]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[toBlob.null.html]
|
||||
[toBlob with zero dimension returns a null Blob]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[toBlob.png.html]
|
||||
[toBlob with image/png returns a PNG Blob]
|
||||
expected: FAIL
|
|
@ -1,4 +0,0 @@
|
|||
[currentSrc-blob-cache.html]
|
||||
[currentSrc is right even if underlying image is a shared blob]
|
||||
expected: FAIL
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
[tasks.window.html]
|
||||
[document.open() and tasks (canvas.toBlob())]
|
||||
expected: FAIL
|
||||
|
||||
[tasks without document.open() (canvas.toBlob())]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue