Skip to content

Commit ef1a602

Browse files
nodejs-github-botaduh95
authored andcommitted
test: update WPT for WebCryptoAPI to 3127c3a492
PR-URL: #66492 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 8c556ab commit ef1a602

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎test/fixtures/wpt/WebCryptoAPI/supports.tentative.https.any.js‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,25 @@ promise_test(async (t) => {
728728
'deriveKey X25519-HMAC-SHA-256 should fail');
729729
}, 'deriveKey promise tests');
730730

731+
// Test supports for exportKey op
732+
test(() => {
733+
assert_true(SubtleCrypto.supports('exportKey', 'AES-GCM'),
734+
'exportKey AES-GCM should pass');
735+
assert_false(SubtleCrypto.supports('exportKey', 'HKDF'),
736+
'exportKey HKDF should fail');
737+
assert_false(SubtleCrypto.supports('exportKey', 'PBKDF2'),
738+
'exportKey PBKDF2 should fail');
739+
}, 'exportKey tests');
740+
741+
// Test supports for wrapKey op
742+
test(() => {
743+
assert_true(SubtleCrypto.supports('wrapKey', 'AES-KW', 'AES-GCM'),
744+
'wrapKey AES-KW-AES-GCM should pass');
745+
assert_false(SubtleCrypto.supports('wrapKey', 'AES-KW', 'HKDF'),
746+
'wrapKey AES-KW-HKDF should fail');
747+
assert_false(SubtleCrypto.supports('wrapKey', 'AES-KW', 'PBKDF2'),
748+
'wrapKey AES-KW-PBKDF2 should fail');
749+
}, 'wrapKey tests');
731750

732751

733752
done();

‎test/fixtures/wpt/versions.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"path": "web-locks"
101101
},
102102
"WebCryptoAPI": {
103-
"commit": "a6a0a0292a4706866328488ffaaace00400edcc6",
103+
"commit": "3127c3a492e63578ed2bf76e3d4bda805183b5a3",
104104
"path": "WebCryptoAPI"
105105
},
106106
"webidl": {

0 commit comments

Comments
 (0)