Skip to content

Commit 7e36e0d

Browse files
committed
latest tests
1 parent ddb0855 commit 7e36e0d

File tree

87 files changed

+2642
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+2642
-137
lines changed

β€Žtest/fixtures/wpt/README.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Last update:
3131
- url: https://github.com/web-platform-tests/wpt/tree/c928b19ab0/url
3232
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern
3333
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
34-
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
34+
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/65a2134d50/wasm/jsapi
3535
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
3636
- web-locks: https://github.com/web-platform-tests/wpt/tree/10a122a6bc/web-locks
3737
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/6a1c545d77/WebCryptoAPI

β€Žtest/fixtures/wpt/versions.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"path": "user-timing"
8585
},
8686
"wasm/jsapi": {
87-
"commit": "cde25e7e3c3b9d2280eb088a3fb9da988793d255",
87+
"commit": "65a2134d50",
8888
"path": "wasm/jsapi"
8989
},
9090
"wasm/webapi": {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
features:
2+
- name: wasm
3+
files:
4+
- "*"

β€Žtest/fixtures/wpt/wasm/jsapi/assertions.jsβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function assert_function_name(fn, name, description) {
66
assert_true(propdesc.configurable, "configurable", `${description} name should be configurable`);
77
assert_equals(propdesc.value, name, `${description} name should be ${name}`);
88
}
9+
globalThis.assert_function_name = assert_function_name;
910

1011
function assert_function_length(fn, length, description) {
1112
const propdesc = Object.getOwnPropertyDescriptor(fn, "length");
@@ -15,6 +16,7 @@ function assert_function_length(fn, length, description) {
1516
assert_true(propdesc.configurable, "configurable", `${description} length should be configurable`);
1617
assert_equals(propdesc.value, length, `${description} length should be ${length}`);
1718
}
19+
globalThis.assert_function_length = assert_function_length;
1820

1921
function assert_exported_function(fn, { name, length }, description) {
2022
if (WebAssembly.Function === undefined) {
@@ -28,6 +30,7 @@ function assert_exported_function(fn, { name, length }, description) {
2830
assert_function_name(fn, name, description);
2931
assert_function_length(fn, length, description);
3032
}
33+
globalThis.assert_exported_function = assert_exported_function;
3134

3235
function assert_Instance(instance, expected_exports) {
3336
assert_equals(Object.getPrototypeOf(instance), WebAssembly.Instance.prototype,
@@ -77,6 +80,7 @@ function assert_Instance(instance, expected_exports) {
7780
}
7881
}
7982
}
83+
globalThis.assert_Instance = assert_Instance;
8084

8185
function assert_WebAssemblyInstantiatedSource(actual, expected_exports={}) {
8286
assert_equals(Object.getPrototypeOf(actual), Object.prototype,
@@ -98,3 +102,4 @@ function assert_WebAssemblyInstantiatedSource(actual, expected_exports={}) {
98102
assert_true(instance.configurable, "instance: configurable");
99103
assert_Instance(instance.value, expected_exports);
100104
}
105+
globalThis.assert_WebAssemblyInstantiatedSource = assert_WebAssemblyInstantiatedSource;

β€Žtest/fixtures/wpt/wasm/jsapi/bad-imports.jsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,4 @@ function test_bad_imports(t) {
183183
});
184184
}
185185
}
186+
globalThis.test_bad_imports = test_bad_imports;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
features:
2+
- name: wasm
3+
files:
4+
- "*"
5+
- "!multi-value.any.js"
6+
- name: wasm-multi-value
7+
files:
8+
- "multi-value.any.js"

β€Žtest/fixtures/wpt/wasm/jsapi/constructor/compile.any.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// META: global=window,dedicatedworker,jsshell
1+
// META: global=window,dedicatedworker,jsshell,shadowrealm
22
// META: script=/wasm/jsapi/wasm-module-builder.js
33

44
function assert_Module(module) {

β€Žtest/fixtures/wpt/wasm/jsapi/constructor/instantiate-bad-imports.any.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// META: global=window,dedicatedworker,jsshell
1+
// META: global=window,dedicatedworker,jsshell,shadowrealm
22
// META: script=/wasm/jsapi/wasm-module-builder.js
33
// META: script=/wasm/jsapi/bad-imports.js
44

β€Žtest/fixtures/wpt/wasm/jsapi/constructor/instantiate.any.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// META: global=window,dedicatedworker,jsshell
1+
// META: global=window,dedicatedworker,jsshell,shadowrealm
22
// META: script=/wasm/jsapi/wasm-module-builder.js
33
// META: script=/wasm/jsapi/assertions.js
44
// META: script=/wasm/jsapi/instanceTestFactory.js

β€Žtest/fixtures/wpt/wasm/jsapi/constructor/multi-value.any.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// META: global=window,dedicatedworker,jsshell
1+
// META: global=window,dedicatedworker,jsshell,shadowrealm
22
// META: script=/wasm/jsapi/wasm-module-builder.js
33
// META: script=/wasm/jsapi/assertions.js
44

0 commit comments

Comments
Β (0)