test: update WPT for WebCryptoAPI to 3127c3a492

PR-URL: https://github.com/nodejs/node/pull/66492
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Node.js GitHub Bot authored and Antoine du Hamel committed 2026-10-06 12:37:26 +02:00
1 parent 8c556ab2b6
commit ef1a602283
2 files changed
+20 -1

No files matched your search

@@ -728,6 +728,25 @@ promise_test(async (t) => {
'deriveKey X25519-HMAC-SHA-256 should fail');
}, 'deriveKey promise tests');
// Test supports for exportKey op
test(() => {
assert_true(SubtleCrypto.supports('exportKey', 'AES-GCM'),
'exportKey AES-GCM should pass');
assert_false(SubtleCrypto.supports('exportKey', 'HKDF'),
'exportKey HKDF should fail');
assert_false(SubtleCrypto.supports('exportKey', 'PBKDF2'),
'exportKey PBKDF2 should fail');
}, 'exportKey tests');
// Test supports for wrapKey op
test(() => {
assert_true(SubtleCrypto.supports('wrapKey', 'AES-KW', 'AES-GCM'),
'wrapKey AES-KW-AES-GCM should pass');
assert_false(SubtleCrypto.supports('wrapKey', 'AES-KW', 'HKDF'),
'wrapKey AES-KW-HKDF should fail');
assert_false(SubtleCrypto.supports('wrapKey', 'AES-KW', 'PBKDF2'),
'wrapKey AES-KW-PBKDF2 should fail');
}, 'wrapKey tests');
done();
+1 -1
View File
@@ -100,7 +100,7 @@
"path": "web-locks"
},
"WebCryptoAPI": {
"commit": "a6a0a0292a4706866328488ffaaace00400edcc6",
"commit": "3127c3a492e63578ed2bf76e3d4bda805183b5a3",
"path": "WebCryptoAPI"
},
"webidl": {