test: update WPT for WebCryptoAPI to 19d82c57ab

PR-URL: https://github.com/nodejs/node/pull/59129
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Node.js GitHub Bot authored and Antoine du Hamel committed 2025-08-04 13:35:51 +02:00
1 parent f71f427b95
commit 89ac344393
4 files changed
+13 -8

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ Last update:
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/591c95ce61/WebCryptoAPI
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/19d82c57ab/WebCryptoAPI
- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel
- webstorage: https://github.com/web-platform-tests/wpt/tree/1291340aaa/webstorage
@@ -2,27 +2,27 @@
// helper functions that generate all possible test parameters for
// different situations.
function getValidKeyData(algorithm) {
return validKeyData[algorithm.name];
return validKeyData[algorithm.name || algorithm];
}
function getBadKeyLengthData(algorithm) {
return badKeyLengthData[algorithm.name];
return badKeyLengthData[algorithm.name || algorithm];
}
function getMissingJWKFieldKeyData(algorithm) {
return missingJWKFieldKeyData[algorithm.name];
return missingJWKFieldKeyData[algorithm.name || algorithm];
}
function getMismatchedJWKKeyData(algorithm) {
return mismatchedJWKKeyData[algorithm.name];
return mismatchedJWKKeyData[algorithm.name || algorithm];
}
function getMismatchedKtyField(algorithm) {
return mismatchedKtyField[algorithm.name];
return mismatchedKtyField[algorithm.name || algorithm];
}
function getMismatchedCrvField(algorithm) {
return mismatchedCrvField[algorithm.name];
return mismatchedCrvField[algorithm.name || algorithm];
}
var validKeyData = {
+5
View File
@@ -93,6 +93,10 @@ function objectToString(obj) {
// Is key a CryptoKey object with correct algorithm, extractable, and usages?
// Is it a secret, private, or public kind of key?
function assert_goodCryptoKey(key, algorithm, extractable, usages, kind) {
if (typeof algorithm === "string") {
algorithm = { name: algorithm };
}
var correctUsages = [];
var registeredAlgorithmName;
@@ -203,6 +207,7 @@ function allAlgorithmSpecifiersFor(algorithmName) {
results.push({name: algorithmName, namedCurve: curveName});
});
} else if (algorithmName.toUpperCase().substring(0, 1) === "X" || algorithmName.toUpperCase().substring(0, 2) === "ED") {
results.push(algorithmName);
results.push({ name: algorithmName });
}
+1 -1
View File
@@ -88,7 +88,7 @@
"path": "wasm/webapi"
},
"WebCryptoAPI": {
"commit": "591c95ce6174690b92833cd92859ce2807714591",
"commit": "19d82c57abc7494bdc459a338c5dcfd79e818b4a",
"path": "WebCryptoAPI"
},
"webidl/ecmascript-binding/es-exceptions": {