Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1baafcc

Browse filesBrowse files
nodejs-github-botpanva
authored andcommitted
test: update WPT resources, interfaces and WebCryptoAPI
PR-URL: #62389 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent d4fa60c commit 1baafcc
Copy full SHA for 1baafcc

83 files changed

+2,316-2,442Lines changed: 2316 additions & 2442 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
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
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ Last update:
2323
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
2424
- html/webappapis/structured-clone: https://github.com/web-platform-tests/wpt/tree/47d3fb280c/html/webappapis/structured-clone
2525
- html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/5873f2d8f1/html/webappapis/timers
26-
- interfaces: https://github.com/web-platform-tests/wpt/tree/e1b27be06b/interfaces
26+
- interfaces: https://github.com/web-platform-tests/wpt/tree/a8392bd021/interfaces
2727
- performance-timeline: https://github.com/web-platform-tests/wpt/tree/94caab7038/performance-timeline
2828
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
29-
- resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources
29+
- resources: https://github.com/web-platform-tests/wpt/tree/6a2f322376/resources
3030
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
3131
- url: https://github.com/web-platform-tests/wpt/tree/c928b19ab0/url
3232
- urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern
3333
- user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing
3434
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi
3535
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
3636
- web-locks: https://github.com/web-platform-tests/wpt/tree/10a122a6bc/web-locks
37-
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/0acea989ac/WebCryptoAPI
37+
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/caebe89c3b/WebCryptoAPI
3838
- webidl: https://github.com/web-platform-tests/wpt/tree/63ca529a02/webidl
3939
- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/2f96fa1996/webidl/ecmascript-binding/es-exceptions
4040
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel
Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/argon2.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/argon2.js
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ function define_tests() {
5151
var algorithmName = vector.algorithm;
5252
var password = vector.password;
5353

54-
// Key for normal operations
5554
promises.push(
5655
subtle
5756
.importKey('raw-secret', password, algorithmName, false, [
@@ -70,20 +69,3 @@ function define_tests() {
7069
});
7170
}
7271
}
73-
74-
function equalBuffers(a, b) {
75-
if (a.byteLength !== b.byteLength) {
76-
return false;
77-
}
78-
79-
var aView = new Uint8Array(a);
80-
var bView = new Uint8Array(b);
81-
82-
for (var i = 0; i < aView.length; i++) {
83-
if (aView[i] !== bView[i]) {
84-
return false;
85-
}
86-
}
87-
88-
return true;
89-
}
Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/argon2.tentative.https.any.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/argon2.tentative.https.any.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// META: title=WebCryptoAPI: deriveBits() Using Argon2
22
// META: timeout=long
3+
// META: script=../util/helpers.js
34
// META: script=/common/subset-tests.js
45
// META: script=argon2_vectors.js
56
// META: script=argon2.js
Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/argon2_vectors.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/argon2_vectors.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ function getTestData() {
22
// Test vectors from RFC 9106
33
// https://www.rfc-editor.org/rfc/rfc9106
44

5-
// Test vectors from RFC 9106
65
var testVectors = [
76
// Argon2d test vector
87
{
Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits.js
-33Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -224,37 +224,4 @@ function define_tests(algorithmName) {
224224
.then(function(results) {return {privateKeys: privateKeys, publicKeys: publicKeys, noDeriveBitsKeys: noDeriveBitsKeys, ecdhKeys: ecdhPublicKeys}});
225225
}
226226

227-
// Compares two ArrayBuffer or ArrayBufferView objects. If bitCount is
228-
// omitted, the two values must be the same length and have the same contents
229-
// in every byte. If bitCount is included, only that leading number of bits
230-
// have to match.
231-
function equalBuffers(a, b, bitCount) {
232-
var remainder;
233-
234-
if (typeof bitCount === "undefined" && a.byteLength !== b.byteLength) {
235-
return false;
236-
}
237-
238-
var aBytes = new Uint8Array(a);
239-
var bBytes = new Uint8Array(b);
240-
241-
var length = a.byteLength;
242-
if (typeof bitCount !== "undefined") {
243-
length = Math.floor(bitCount / 8);
244-
}
245-
246-
for (var i=0; i<length; i++) {
247-
if (aBytes[i] !== bBytes[i]) {
248-
return false;
249-
}
250-
}
251-
252-
if (typeof bitCount !== "undefined") {
253-
remainder = bitCount % 8;
254-
return aBytes[length] >> (8 - remainder) === bBytes[length] >> (8 - remainder);
255-
}
256-
257-
return true;
258-
}
259-
260227
}
Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits_curve25519.https.any.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits_curve25519.https.any.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// META: title=WebCryptoAPI: deriveKey() Using ECDH with CFRG Elliptic Curves
2+
// META: script=../util/helpers.js
23
// META: script=cfrg_curves_bits_fixtures.js
34
// META: script=cfrg_curves_bits.js
45

Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits_curve448.tentative.https.any.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits_curve448.tentative.https.any.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// META: title=WebCryptoAPI: deriveKey() Using ECDH with CFRG Elliptic Curves
2+
// META: script=../util/helpers.js
23
// META: script=cfrg_curves_bits_fixtures.js
34
// META: script=cfrg_curves_bits.js
45

Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys.js
-33Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -221,37 +221,4 @@ function define_tests(algorithmName) {
221221
.then(function(results) {return {privateKeys: privateKeys, publicKeys: publicKeys, noDeriveKeyKeys: noDeriveKeyKeys, ecdhKeys: ecdhPublicKeys}});
222222
}
223223

224-
// Compares two ArrayBuffer or ArrayBufferView objects. If bitCount is
225-
// omitted, the two values must be the same length and have the same contents
226-
// in every byte. If bitCount is included, only that leading number of bits
227-
// have to match.
228-
function equalBuffers(a, b, bitCount) {
229-
var remainder;
230-
231-
if (typeof bitCount === "undefined" && a.byteLength !== b.byteLength) {
232-
return false;
233-
}
234-
235-
var aBytes = new Uint8Array(a);
236-
var bBytes = new Uint8Array(b);
237-
238-
var length = a.byteLength;
239-
if (typeof bitCount !== "undefined") {
240-
length = Math.floor(bitCount / 8);
241-
}
242-
243-
for (var i=0; i<length; i++) {
244-
if (aBytes[i] !== bBytes[i]) {
245-
return false;
246-
}
247-
}
248-
249-
if (typeof bitCount !== "undefined") {
250-
remainder = bitCount % 8;
251-
return aBytes[length] >> (8 - remainder) === bBytes[length] >> (8 - remainder);
252-
}
253-
254-
return true;
255-
}
256-
257224
}
Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys_curve25519.https.any.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys_curve25519.https.any.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// META: title=WebCryptoAPI: deriveKey() Using ECDH with CFRG Elliptic Curves
2+
// META: script=../util/helpers.js
23
// META: script=cfrg_curves_bits_fixtures.js
34
// META: script=cfrg_curves_keys.js
45

Collapse file

‎test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys_curve448.tentative.https.any.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys_curve448.tentative.https.any.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// META: title=WebCryptoAPI: deriveKey() Using ECDH with CFRG Elliptic Curves
2+
// META: script=../util/helpers.js
23
// META: script=cfrg_curves_bits_fixtures.js
34
// META: script=cfrg_curves_keys.js
45

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.