mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
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();
|
||||
Vendored
+1
-1
@@ -100,7 +100,7 @@
|
||||
"path": "web-locks"
|
||||
},
|
||||
"WebCryptoAPI": {
|
||||
"commit": "a6a0a0292a4706866328488ffaaace00400edcc6",
|
||||
"commit": "3127c3a492e63578ed2bf76e3d4bda805183b5a3",
|
||||
"path": "WebCryptoAPI"
|
||||
},
|
||||
"webidl": {
|
||||
|
||||
Reference in new issue
Block a user