mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
script: Implement Blob::bytes()
(#35151)
* script: Implement Blob.bytes() Signed-off-by: yoseio <98276492+yoseio@users.noreply.github.com> * improve read_all_bytes Signed-off-by: yoseio <98276492+yoseio@users.noreply.github.com> * fix read_all_bytes Signed-off-by: yoseio <98276492+yoseio@users.noreply.github.com> * fix bug Signed-off-by: yoseio <98276492+yoseio@users.noreply.github.com> * something went wrong Signed-off-by: Kousuke Takaki <98276492+yoseio@users.noreply.github.com> * fix read loop Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> * add use of can_gc to promise code following rebase Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> * fix rooting of fulfillment handler Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> * Update test expectations Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> * use dom for reader in read loop fulfillment handler Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> * use the global of the reader in read loop fulfillment handler Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> * remove FAIl expectations for blob methods in detached iframe Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> --------- Signed-off-by: yoseio <98276492+yoseio@users.noreply.github.com> Signed-off-by: Kousuke Takaki <98276492+yoseio@users.noreply.github.com> Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com> Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com> Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com> Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
a1ecce5502
commit
8a3f62933b
9 changed files with 205 additions and 80 deletions
|
@ -1,6 +0,0 @@
|
|||
[Blob-methods-from-detached-frame.html]
|
||||
[slice()]
|
||||
expected: FAIL
|
||||
|
||||
[bytes()]
|
||||
expected: FAIL
|
|
@ -1,32 +0,0 @@
|
|||
[Blob-bytes.any.html]
|
||||
[Blob.bytes()]
|
||||
expected: FAIL
|
||||
|
||||
[Blob.bytes() empty Blob data]
|
||||
expected: FAIL
|
||||
|
||||
[Blob.bytes() non-ascii input]
|
||||
expected: FAIL
|
||||
|
||||
[Blob.bytes() non-unicode input]
|
||||
expected: FAIL
|
||||
|
||||
[Blob.bytes() concurrent reads]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[Blob-bytes.any.worker.html]
|
||||
[Blob.bytes()]
|
||||
expected: FAIL
|
||||
|
||||
[Blob.bytes() empty Blob data]
|
||||
expected: FAIL
|
||||
|
||||
[Blob.bytes() non-ascii input]
|
||||
expected: FAIL
|
||||
|
||||
[Blob.bytes() non-unicode input]
|
||||
expected: FAIL
|
||||
|
||||
[Blob.bytes() concurrent reads]
|
||||
expected: FAIL
|
26
tests/wpt/meta/FileAPI/idlharness.any.js.ini
vendored
26
tests/wpt/meta/FileAPI/idlharness.any.js.ini
vendored
|
@ -1,8 +1,4 @@
|
|||
[idlharness.any.html]
|
||||
[Blob interface: operation text()]
|
||||
|
||||
[Blob interface: operation arrayBuffer()]
|
||||
|
||||
[FileReader interface: operation readAsBinaryString(Blob)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -12,21 +8,8 @@
|
|||
[FileReader interface: calling readAsBinaryString(Blob) on new FileReader() with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Blob interface: operation bytes()]
|
||||
expected: FAIL
|
||||
|
||||
[Blob interface: new Blob(["TEST"\]) must inherit property "bytes()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "bytes()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[idlharness.any.worker.html]
|
||||
[Blob interface: operation text()]
|
||||
|
||||
[Blob interface: operation arrayBuffer()]
|
||||
|
||||
[FileReader interface: operation readAsBinaryString(Blob)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -35,12 +18,3 @@
|
|||
|
||||
[FileReader interface: calling readAsBinaryString(Blob) on new FileReader() with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Blob interface: operation bytes()]
|
||||
expected: FAIL
|
||||
|
||||
[Blob interface: new Blob(["TEST"\]) must inherit property "bytes()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "bytes()" with the proper type]
|
||||
expected: FAIL
|
||||
|
|
7
tests/wpt/meta/FileAPI/idlharness.html.ini
vendored
7
tests/wpt/meta/FileAPI/idlharness.html.ini
vendored
|
@ -1,8 +1,4 @@
|
|||
[idlharness.html]
|
||||
[Blob interface: operation text()]
|
||||
|
||||
[Blob interface: operation arrayBuffer()]
|
||||
|
||||
[FileReader interface: operation readAsBinaryString(Blob)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -17,6 +13,3 @@
|
|||
|
||||
[Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "stream()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Blob interface: operation bytes()]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
[idlharness.worker.html]
|
||||
[Blob interface: operation text()]
|
||||
|
||||
[Blob interface: operation arrayBuffer()]
|
||||
|
||||
[FileReader interface: operation readAsBinaryString(Blob)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -17,6 +13,3 @@
|
|||
|
||||
[Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "stream()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Blob interface: operation bytes()]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue