Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: enable idlharness tests for encoding #50778

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/common/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ class WPTRunner {
'ReadableStreamBYOBReader', 'ReadableStreamBYOBRequest',
'ReadableByteStreamController', 'ReadableStreamDefaultController',
'ByteLengthQueuingStrategy', 'CountQueuingStrategy',
'TextEncoderStream', 'TextDecoderStream',
'TextEncoder', 'TextDecoder', 'TextEncoderStream', 'TextDecoderStream',
'CompressionStream', 'DecompressionStream',
];
if (Boolean(process.versions.openssl) && !process.env.NODE_SKIP_CRYPTO) {
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/status/encoding.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"skip": "The iso-8859-16 encoding is not supported"
},
"idlharness.any.js": {
"skip": "No implementation of TextDecoderStream and TextEncoderStream"
"requires": ["small-icu"]
},
"idlharness-shadowrealm.window.js": {
"skip": "ShadowRealm support is not enabled"
Expand Down
3 changes: 3 additions & 0 deletions test/wpt/test-encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('encoding');

// Set a script that will be executed in the worker before running the tests.
runner.pretendGlobalThisAs('Window');
MattiasBuelens marked this conversation as resolved.
Show resolved Hide resolved

runner.runJsTests();
Loading