Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions src/wpt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,14 @@ wpt_test(
name = "wasm/jsapi",
size = "large",
config = "wasm/jsapi-test.ts",
# The ESM integration tests call import(), which fails in scripts the harness evaluates
exclude_test_dirs = ["esm-integration"],
extra_wpt_directories = [
"@wpt//:wasm/jsapi@module",
"@wpt//:wasm/resources@module",
],
extra_wpt_files = ["@wpt//:wasm/incrementer.wasm"],
include_tentative = True,
# Uses 1.6-2.3 cores on average, and up to 3.4.
tags = ["cpu:2"],
wpt_directory = "@wpt//:wasm/jsapi@module",
Expand Down
37 changes: 37 additions & 0 deletions src/wpt/wasm/jsapi-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

import { type TestRunnerConfig } from 'harness/harness';

const typeReflection = {
comment:
'V8 does not ship the WebAssembly type reflection proposal (WebAssembly.Function, type() and the minimum descriptor field)',
expectedFailures: true,
} as const;

export default {
'assertions.js': {
comment: 'Helper script loaded by other tests',
Expand Down Expand Up @@ -50,12 +56,34 @@ export default {
'constructor/toStringTag.any.js': {},
'constructor/validate.any.js': {},
'error-interfaces-no-symbol-tostringtag.js': {},
'exception/basic.tentative.any.js': {
comment:
'WebAssembly.compile() and instantiate() of bytes finish on a V8 foreground task, which workerd only runs when other work wakes the isolate, so these promises never settle (https://github.com/cloudflare/workerd/issues/7930)',
disabledTests: true,
},
'exception/constructor.tentative.any.js': {},
'exception/getArg.tentative.any.js': {
comment:
'V8 throws a TypeError, not a RangeError, for an index that is not a valid unsigned long',
expectedFailures: ['Getting out-of-range argument'],
},
'exception/identity.tentative.any.js': {},
'exception/is.tentative.any.js': {},
'exception/toString.tentative.any.js': {},
'function/call.tentative.any.js': typeReflection,
'function/constructor.tentative.any.js': typeReflection,
'function/table.tentative.any.js': typeReflection,
'function/type.tentative.any.js': typeReflection,
'functions/helper.js': {
comment: 'Helper script loaded by other tests',
omittedTests: true,
},
'gc/casts.tentative.any.js': {},
'gc/exported-object.tentative.any.js': {},
'gc/i31.tentative.any.js': {},
'global/constructor.any.js': {},
'global/toString.any.js': {},
'global/type.tentative.any.js': typeReflection,
'global/value-get-set.any.js': {},
'global/valueOf.any.js': {},
'idlharness.any.js': {
Expand Down Expand Up @@ -101,28 +129,37 @@ export default {
omittedTests: true,
},
'memory/buffer.any.js': {},
'memory/constructor-shared.tentative.any.js': {},
'memory/constructor-types.tentative.any.js': typeReflection,
'memory/constructor.any.js': {},
'memory/grow.any.js': {},
'memory/to-fixed-length-buffer-shared.any.js': {},
'memory/to-fixed-length-buffer.any.js': {},
'memory/to-resizable-buffer-shared.any.js': {},
'memory/to-resizable-buffer.any.js': {},
'memory/toString.any.js': {},
'memory/type.tentative.any.js': typeReflection,
'module/constructor.any.js': {},
'module/customSections.any.js': {},
'module/exports.any.js': {},
'module/imports.any.js': {},
'module/moduleSource.tentative.any.js': {},
'module/toString.any.js': {},
'prototypes.any.js': {},
'table/assertions.js': {
comment: 'Helper script loaded by other tests',
omittedTests: true,
},
'table/constructor-types.tentative.any.js': typeReflection,
'table/constructor.any.js': {},
'table/get-set.any.js': {},
'table/grow.any.js': {},
'table/length.any.js': {},
'table/toString.any.js': {},
'table/type.tentative.any.js': typeReflection,
'tag/constructor.tentative.any.js': {},
'tag/toString.tentative.any.js': {},
'tag/type.tentative.any.js': typeReflection,
'wasm-module-builder.js': {
comment: 'Helper script loaded by other tests',
omittedTests: true,
Expand Down
Loading