servo/tests/wpt
minghuaw 554b2da1ad
Script: Implement TextDecoderStream (#38112)
This PR implements the `TextDecoderStream`. Other than introducing the
necessary mod and webidl files corresponding to `TextDecoderStream`,
this PR also involves some changes in `TextDecoder` and
`TrasnformStream`:

- The common part that can be shared between `TextDecoder` and
`TextDecoderStream` are extracted into a separate type
`script::dom::textdecodercommon::TextDecoderCommon`. This type could
probably use a different name because there is an interface called
`TextDecoderCommon` in the spec
(https://encoding.spec.whatwg.org/#textdecodercommon) which just gets
included in `TextDecoder` and `TextDecoderStream`.
- The three algorithms in `TransformStream` (`cancel`, `flush`, and
`transform`) all have become `enum` that has a `Js` variant for a JS
function object and a `Native` variant for a rust trait object. Whether
the cancel algorithm needs this enum type is debatable as I did not find
any interface in the spec that explicitly sets the cancel algorithm.

Testing: Existing WPT tests `tests/wpt/tests/encoding/stream` should be
sufficient
Fixes: #37723

---------

Signed-off-by: minghuaw <michael.wu1107@gmail.com>
Signed-off-by: minghuaw <wuminghua7@huawei.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
2025-07-29 04:18:15 +00:00
..
meta Script: Implement TextDecoderStream (#38112) 2025-07-29 04:18:15 +00:00
mozilla Script: Implement TextDecoderStream (#38112) 2025-07-29 04:18:15 +00:00
tests chore: Add test for synthesized image documents with CSP headers. (#38191) 2025-07-28 13:45:54 +00:00
webgl WebGL2: support TexImage3D (#37718) 2025-07-09 14:22:03 +00:00
webgpu Disable serviceworkers for webgpu CTS tests (#36672) 2025-04-24 10:02:57 +00:00
aliases
config.ini
hosts
include.ini Add CookieStore pref and add baseline test expectations (#38154) 2025-07-18 02:21:34 +00:00
README.md Update in-tree docs to point to the new book (#32743) 2024-07-09 15:42:00 +00:00
vello_canvas_subsuite.json canvas: Make 2D context state creation failable and use dom_canvas_backend pref for backend selection (#38310) 2025-07-28 09:13:07 +00:00
vello_cpu_canvas_subsuite.json canvas: Make 2D context state creation failable and use dom_canvas_backend pref for backend selection (#38310) 2025-07-28 09:13:07 +00:00

Web tests (including Web Platform Tests)

Moved to the Servo book: