Skip to content

Commit 55407b8

Browse files
mhdawsontargos
authored andcommittedFeb 2, 2021
test: update to improve terminology
Update common section in wpt to incorporate improved terminology fixed upstream in web-platform-tests/wpt#27152 Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: #37011 Reviewed-By: Milad Fa <mfarazma@redhat.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent ef2b250 commit 55407b8

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed
 

‎test/fixtures/wpt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Last update:
1818
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
1919
- html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/264f12bc7b/html/webappapis/timers
2020
- hr-time: https://github.com/web-platform-tests/wpt/tree/a5d1774ecf/hr-time
21-
- common: https://github.com/web-platform-tests/wpt/tree/4dacb6e2ff/common
21+
- common: https://github.com/web-platform-tests/wpt/tree/841a51412f/common
2222
- dom/abort: https://github.com/web-platform-tests/wpt/tree/7caa3de747/dom/abort
2323
- FileAPI: https://github.com/web-platform-tests/wpt/tree/d9d921b8f9/FileAPI
2424

‎test/fixtures/wpt/common/sab.js

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ const createBuffer = (() => {
55
if (type === "ArrayBuffer") {
66
return new ArrayBuffer(length);
77
} else if (type === "SharedArrayBuffer") {
8+
if (sabConstructor.name !== "SharedArrayBuffer") {
9+
throw new Error("WebAssembly.Memory does not support shared:true");
10+
}
811
return new sabConstructor(length);
912
} else {
1013
throw new Error("type has to be ArrayBuffer or SharedArrayBuffer");

‎test/fixtures/wpt/common/security-features/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ The ```excluded_tests``` section have objects with the same format as [Test Expa
278278

279279
Taking the spec JSON, the generator follows this algorithm:
280280

281-
* Expand all ```excluded_tests``` to create a blacklist of selections
281+
* Expand all ```excluded_tests``` to create a denylist of selections
282282

283-
* 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
283+
* 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
284284

285285
### SourceContext Resolution
286286

‎test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"path": "hr-time"
3333
},
3434
"common": {
35-
"commit": "4dacb6e2ff8dbabbe328fde2d8c75491598e4c10",
35+
"commit": "841a51412f236ad63655daca843d3b8e83e0777b",
3636
"path": "common"
3737
},
3838
"dom/abort": {

‎test/wpt/status/encoding.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"requires": ["small-icu"]
1616
},
1717
"textdecoder-streaming.any.js": {
18-
"requires": ["small-icu"]
18+
"requires": ["small-icu"],
19+
"fail": "WebAssembly.Memory does not support shared:true"
1920
},
2021
"textdecoder-utf16-surrogates.any.js": {
2122
"requires": ["small-icu"]
@@ -50,5 +51,11 @@
5051
},
5152
"streams/*.js": {
5253
"fail": "No implementation of TextDecoderStream and TextEncoderStream"
54+
},
55+
"encodeInto.any.js": {
56+
"fail": "WebAssembly.Memory does not support shared:true"
57+
},
58+
"textdecoder-copy.any.js": {
59+
"fail": "WebAssembly.Memory does not support shared:true"
5360
}
5461
}

0 commit comments

Comments
 (0)
Please sign in to comment.