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: update to improve terminology #37011

Merged
merged 1 commit into from
Jan 27, 2021
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
2 changes: 1 addition & 1 deletion test/fixtures/wpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Last update:
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
- html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/264f12bc7b/html/webappapis/timers
- hr-time: https://github.com/web-platform-tests/wpt/tree/a5d1774ecf/hr-time
- common: https://github.com/web-platform-tests/wpt/tree/4dacb6e2ff/common
- common: https://github.com/web-platform-tests/wpt/tree/841a51412f/common
- dom/abort: https://github.com/web-platform-tests/wpt/tree/7caa3de747/dom/abort
- FileAPI: https://github.com/web-platform-tests/wpt/tree/d9d921b8f9/FileAPI

Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/wpt/common/sab.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const createBuffer = (() => {
if (type === "ArrayBuffer") {
return new ArrayBuffer(length);
} else if (type === "SharedArrayBuffer") {
if (sabConstructor.name !== "SharedArrayBuffer") {
throw new Error("WebAssembly.Memory does not support shared:true");
}
return new sabConstructor(length);
} else {
throw new Error("type has to be ArrayBuffer or SharedArrayBuffer");
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/wpt/common/security-features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ The ```excluded_tests``` section have objects with the same format as [Test Expa

Taking the spec JSON, the generator follows this algorithm:

* Expand all ```excluded_tests``` to create a blacklist of selections
* Expand all ```excluded_tests``` to create a denylist of selections

* For each `specification` entries: Expand the ```test_expansion``` pattern into selections and check each against the blacklist, if not marked as suppresed, generate the test resources for the selection
* For each `specification` entries: Expand the ```test_expansion``` pattern into selections and check each against the denylist, if not marked as suppresed, generate the test resources for the selection

### SourceContext Resolution

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"path": "hr-time"
},
"common": {
"commit": "4dacb6e2ff8dbabbe328fde2d8c75491598e4c10",
"commit": "841a51412f236ad63655daca843d3b8e83e0777b",
"path": "common"
},
"dom/abort": {
Expand Down
9 changes: 8 additions & 1 deletion test/wpt/status/encoding.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"requires": ["small-icu"]
},
"textdecoder-streaming.any.js": {
"requires": ["small-icu"]
"requires": ["small-icu"],
"fail": "WebAssembly.Memory does not support shared:true"
},
"textdecoder-utf16-surrogates.any.js": {
"requires": ["small-icu"]
Expand Down Expand Up @@ -50,5 +51,11 @@
},
"streams/*.js": {
"fail": "No implementation of TextDecoderStream and TextEncoderStream"
},
"encodeInto.any.js": {
"fail": "WebAssembly.Memory does not support shared:true"
},
"textdecoder-copy.any.js": {
"fail": "WebAssembly.Memory does not support shared:true"
}
}