GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: update WPT for WebCryptoAPI to 19d82c57ab · nodejs/node@89ac344

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/fixtures/wpt
    • README.md
    • WebCryptoAPI
      • import_export
        • okp_importKey_failures_fixtures.js
      • util
        • helpers.js
    • versions.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/fixtures/wpt/README.md‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Last update:
3232
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
3333
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
3434
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
35-
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/591c95ce61/WebCryptoAPI
35+
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/19d82c57ab/WebCryptoAPI
3636
- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions
3737
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel
3838
- webstorage: https://github.com/web-platform-tests/wpt/tree/1291340aaa/webstorage
Collapse file

‎test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_fixtures.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_fixtures.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
// helper functions that generate all possible test parameters for
33
// different situations.
44
function getValidKeyData(algorithm) {
5-
return validKeyData[algorithm.name];
5+
return validKeyData[algorithm.name || algorithm];
66
}
77

88
function getBadKeyLengthData(algorithm) {
9-
return badKeyLengthData[algorithm.name];
9+
return badKeyLengthData[algorithm.name || algorithm];
1010
}
1111

1212
function getMissingJWKFieldKeyData(algorithm) {
13-
return missingJWKFieldKeyData[algorithm.name];
13+
return missingJWKFieldKeyData[algorithm.name || algorithm];
1414
}
1515

1616
function getMismatchedJWKKeyData(algorithm) {
17-
return mismatchedJWKKeyData[algorithm.name];
17+
return mismatchedJWKKeyData[algorithm.name || algorithm];
1818
}
1919

2020
function getMismatchedKtyField(algorithm) {
21-
return mismatchedKtyField[algorithm.name];
21+
return mismatchedKtyField[algorithm.name || algorithm];
2222
}
2323

2424
function getMismatchedCrvField(algorithm) {
25-
return mismatchedCrvField[algorithm.name];
25+
return mismatchedCrvField[algorithm.name || algorithm];
2626
}
2727

2828
var validKeyData = {
Collapse file

‎test/fixtures/wpt/WebCryptoAPI/util/helpers.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/util/helpers.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ function objectToString(obj) {
9393
// Is key a CryptoKey object with correct algorithm, extractable, and usages?
9494
// Is it a secret, private, or public kind of key?
9595
function assert_goodCryptoKey(key, algorithm, extractable, usages, kind) {
96+
if (typeof algorithm === "string") {
97+
algorithm = { name: algorithm };
98+
}
99+
96100
var correctUsages = [];
97101

98102
var registeredAlgorithmName;
@@ -203,6 +207,7 @@ function allAlgorithmSpecifiersFor(algorithmName) {
203207
results.push({name: algorithmName, namedCurve: curveName});
204208
});
205209
} else if (algorithmName.toUpperCase().substring(0, 1) === "X" || algorithmName.toUpperCase().substring(0, 2) === "ED") {
210+
results.push(algorithmName);
206211
results.push({ name: algorithmName });
207212
}
208213

Collapse file

‎test/fixtures/wpt/versions.json‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/versions.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"path": "wasm/webapi"
8989
},
9090
"WebCryptoAPI": {
91-
"commit": "591c95ce6174690b92833cd92859ce2807714591",
91+
"commit": "19d82c57abc7494bdc459a338c5dcfd79e818b4a",
9292
"path": "WebCryptoAPI"
9393
},
9494
"webidl/ecmascript-binding/es-exceptions": {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.