Skip to content

Commit 038c86f

Browse files
committed
fixup! test: update WPT for WebCryptoAPI to c58b6f4e0e
1 parent ef6b1c9 commit 038c86f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

test/wpt/status/WebCryptoAPI.cjs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,50 @@
22

33
const os = require('node:os');
44

5+
const { hasOpenSSL } = require('../../common/crypto.js');
6+
57
const s390x = os.arch() === 's390x';
68

9+
const conditionalSkips = {};
10+
11+
function skip(...files) {
12+
for (const file of files) {
13+
conditionalSkips[file] = {
14+
'skip': `Unsupported in OpenSSL ${process.versions.openssl}`,
15+
}
16+
}
17+
}
18+
19+
if (!hasOpenSSL(3, 0)) {
20+
skip('encrypt_decrypt/aes_ocb.tentative.https.any.js');
21+
skip('generateKey/failures_AES-OCB.tentative.https.any.js');
22+
skip('generateKey/failures_kmac.tentative.https.any.js');
23+
skip('generateKey/successes_AES-OCB.tentative.https.any.js');
24+
skip('generateKey/successes_kmac.tentative.https.any.js');
25+
skip('import_export/AES-OCB_importKey.tentative.https.any.js');
26+
skip('import_export/KMAC_importKey.tentative.https.any.js');
27+
skip('sign_verify/kmac.tentative.https.any.js');
28+
}
29+
30+
if (!hasOpenSSL(3, 2)) {
31+
skip('derive_bits_keys/argon2.tentative.https.any.js');
32+
skip('import_export/Argon2_importKey.tentative.https.any.js');
33+
}
34+
35+
if (!hasOpenSSL(3, 5)) {
36+
skip('encap_decap/encap_decap_bits.tentative.https.any.js');
37+
skip('encap_decap/encap_decap_keys.tentative.https.any.js');
38+
skip('generateKey/failures_ML-DSA.tentative.https.any.js');
39+
skip('generateKey/failures_ML-KEM.tentative.https.any.js');
40+
skip('generateKey/successes_ML-DSA.tentative.https.any.js');
41+
skip('generateKey/successes_ML-KEM.tentative.https.any.js');
42+
skip('import_export/ML-DSA_importKey.tentative.https.any.js');
43+
skip('import_export/ML-KEM_importKey.tentative.https.any.js');
44+
skip('sign_verify/mldsa.tentative.https.any.js');
45+
}
46+
747
module.exports = {
48+
...conditionalSkips,
849
'algorithm-discards-context.https.window.js': {
950
'skip': 'Not relevant in Node.js context',
1051
},

0 commit comments

Comments
 (0)