Skip to content

Commit 398a747

Browse files
panvaruyadorno
authored andcommitted
test,crypto: update WebCryptoAPI WPT
PR-URL: #46267 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 8307a4b commit 398a747

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

test/fixtures/wpt/README.md

+1-1
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/df24fb604e/user-timing
3333
- wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/d8dbe6990b/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/84456654f4/WebCryptoAPI
35+
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/450f829d25/WebCryptoAPI
3636
- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions
3737

3838
[Web Platform Tests]: https://github.com/web-platform-tests/wpt

test/fixtures/wpt/WebCryptoAPI/encrypt_decrypt/aes_gcm_vectors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function getTestVectors() {
246246
var failing = [];
247247
keyLengths.forEach(function(keyLength) {
248248
// First, make some tests for bad tag lengths
249-
[24, 48, 72, 95, 129, 256].forEach(function(badTagLength) {
249+
[24, 48, 72, 95, 129].forEach(function(badTagLength) {
250250
failing.push({
251251
name: "AES-GCM " + keyLength.toString() + "-bit key, illegal tag length " + badTagLength.toString() + "-bits",
252252
keyBuffer: keyBytes[keyLength],

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

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ function assert_goodCryptoKey(key, algorithm, extractable, usages, kind) {
160160
assert_in_array(usage, correctUsages, "Has " + usage + " usage");
161161
});
162162
assert_equals(key.usages.length, usageCount, "usages property is correct");
163+
assert_equals(key[Symbol.toStringTag], 'CryptoKey', "has the expected Symbol.toStringTag");
163164
}
164165

165166

test/fixtures/wpt/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"path": "wasm/webapi"
8989
},
9090
"WebCryptoAPI": {
91-
"commit": "84456654f439f236f3470a36601ecbc4365f50c5",
91+
"commit": "450f829d2567ed9c44bd9b10f7e8f34a2ad15315",
9292
"path": "WebCryptoAPI"
9393
},
9494
"webidl/ecmascript-binding/es-exceptions": {

0 commit comments

Comments
 (0)