Skip to content

test: update wpt

Rodrigo Muino Tomonari requested to merge github/fork/RedYetiDev/wpt into main

This PR updates the WPT files.

Note the following behavioral differences between Node.js and WPT:

test-abort.js

See: #54601 Related: #54466 Comparison: https://wpt.fyi/results/dom/abort/abort-signal-any.any.html

[UNEXPECTED_FAILURE][FAIL] Dependent signals for AbortSignal.any() are marked aborted before abort events fire (using AbortController)
assert_true: event fired expected true got false
    at Test.<anonymous> (/test/fixtures/wpt/dom/abort/resources/abort-signal-any-tests.js:202:5)
    at Test.step (/test/fixtures/wpt/resources/testharness.js:2622:25)
    at test (/test/fixtures/wpt/resources/testharness.js:633:30)
    at abortSignalAnyTests (/test/fixtures/wpt/dom/abort/resources/abort-signal-any-tests.js:186:3)
    at /test/fixtures/wpt/dom/abort/abort-signal-any.any.js:4:1
Command: /out/Release/node  /test/wpt/test-abort.js 'abort-signal-any.any.js'

[UNEXPECTED_FAILURE][FAIL] Dependent signals for AbortSignal.any() are aborted correctly for reentrant aborts (using AbortController)
assert_equals: expected "reason 1" but got "reason 2"
    at Test.<anonymous> (/test/fixtures/wpt/dom/abort/resources/abort-signal-any-tests.js:222:5)
    at Test.step (/test/fixtures/wpt/resources/testharness.js:2622:25)
    at test (/test/fixtures/wpt/resources/testharness.js:633:30)
    at abortSignalAnyTests (/test/fixtures/wpt/dom/abort/resources/abort-signal-any-tests.js:205:3)
    at /test/fixtures/wpt/dom/abort/abort-signal-any.any.js:4:1
Command: /out/Release/node  /test/wpt/test-abort.js 'abort-signal-any.any.js'

[UNEXPECTED_FAILURE][UNCAUGHT] evaluation in WPTRunner.runJsTests()
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues

Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues

    at assert (node:internal/assert:14:11)
    at AbortSignal.any (node:internal/abort_controller:253:11)
    at AbortSignal.<anonymous> (/test/fixtures/wpt/dom/abort/resources/abort-signal-any-tests.js:193:39)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:816:20)
    at AbortSignal.dispatchEvent (node:internal/event_target:751:26)
    at abortSignal (node:internal/abort_controller:374:10)
    at AbortController.abort (node:internal/abort_controller:396:5)
    at Test.<anonymous> (/test/fixtures/wpt/dom/abort/resources/abort-signal-any-tests.js:201:16)
    at Test.step (/test/fixtures/wpt/resources/testharness.js:2622:25)
    at test (/test/fixtures/wpt/resources/testharness.js:633:30) {
  code: 'ERR_INTERNAL_ASSERTION'
}
Command: /out/Release/node  /test/wpt/test-abort.js 'abort-signal-any.any.js'

test-structured-clone.js

Comparison: https://wpt.fyi/results/html/webappapis/structured-clone/structured-clone.any.html See: #54603 ([FAIL] A subclass instance will be received as its closest transferable superclass)

[UNEXPECTED_FAILURE][FAIL] A subclass instance will be received as its closest transferable superclass
assert_equals: expected object "[object ReadableStream]" but got object "[object ReadableStream]"
    at Object.f (/test/fixtures/wpt/html/webappapis/structured-clone/structured-clone-battery-of-tests-with-transferables.js:97:5)
    at async Test.<anonymous> (/test/fixtures/wpt/html/webappapis/structured-clone/structured-clone-battery-of-tests-harness.js:38:9)
Command: /out/Release/node  /test/wpt/test-structured-clone.js 'structured-clone.any.js'

Merge request reports

Loading