Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions test/fixtures/wpt/WebCryptoAPI/supports.tentative.https.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion test/fixtures/wpt/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"path": "web-locks"
},
"WebCryptoAPI": {
"commit": "a6a0a0292a4706866328488ffaaace00400edcc6",
"commit": "3127c3a492e63578ed2bf76e3d4bda805183b5a3",
"path": "WebCryptoAPI"
},
"webidl": {
Expand Down
Loading