mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
f71f427b95
commit
89ac344393
4 files changed
+13
-8
No files matched your search
Vendored
+1
-1
@@ -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
|
||||
|
||||
+6
-6
@@ -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 = {
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -88,7 +88,7 @@
|
||||
"path": "wasm/webapi"
|
||||
},
|
||||
"WebCryptoAPI": {
|
||||
"commit": "591c95ce6174690b92833cd92859ce2807714591",
|
||||
"commit": "19d82c57abc7494bdc459a338c5dcfd79e818b4a",
|
||||
"path": "WebCryptoAPI"
|
||||
},
|
||||
"webidl/ecmascript-binding/es-exceptions": {
|
||||
|
||||
Reference in new issue
Block a user