Files
Filip Skokan f133a0078d Bug 2040290 [wpt PR 59939] - [WebCrypto] Make serialization tests global-agnostic, a=testonly
Automatic update from web-platform-tests
[WebCrypto] Make serialization tests global-agnostic (#59939)

Use structuredClone() instead of postMessage() to a popup window for
CryptoKey serialization round trips. This keeps the structured clone
coverage while allowing the tests to run in server runtimes.

Rename the tests from .https.window.js to .https.any.js, mark the
Ed448 and X448 cases as tentative, and remove the unused popup page.
--

wpt-commits: 9c77781e3f78e199a99a159081c47d10c22db917
wpt-pr: 59939
2026-05-21 07:39:31 +00:00

13 lines
294 B
JavaScript

// META: title=WebCryptoAPI: CryptoKey serialization
// META: script=../util/helpers.js
// META: script=serialization.js
run_test([
{
name: 'RSASSA-PKCS1-v1_5',
resultType: 'CryptoKeyPair',
usages: ['sign', 'verify'],
publicFormat: 'spki',
privateFormat: 'pkcs8'
},
]);