From dfd2312066d21312de5d143d1d7ee4f996bab916 Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Sun, 27 Jul 2025 00:23:06 +0000 Subject: [PATCH 1/2] test: update WPT for WebCryptoAPI to 7813d38f9b --- test/fixtures/wpt/README.md | 2 +- ....any.js => cfrg_curves_bits_curve448.tentative.https.any.js} | 0 ....any.js => cfrg_curves_keys_curve448.tentative.https.any.js} | 0 ...Ed448.https.any.js => failures_Ed448.tentative.https.any.js} | 0 ...s_X448.https.any.js => failures_X448.tentative.https.any.js} | 0 ...d448.https.any.js => successes_Ed448.tentative.https.any.js} | 0 ..._X448.https.any.js => successes_X448.tentative.https.any.js} | 0 ....https.any.js => okp_importKey_Ed448.tentative.https.any.js} | 0 ...8.https.any.js => okp_importKey_X448.tentative.https.any.js} | 0 ...y.js => okp_importKey_failures_Ed448.tentative.https.any.js} | 0 ...ny.js => okp_importKey_failures_X448.tentative.https.any.js} | 0 ...ve448.https.any.js => eddsa_curve448.tentative.https.any.js} | 0 test/fixtures/wpt/versions.json | 2 +- 13 files changed, 2 insertions(+), 2 deletions(-) rename test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/{cfrg_curves_bits_curve448.https.any.js => cfrg_curves_bits_curve448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/{cfrg_curves_keys_curve448.https.any.js => cfrg_curves_keys_curve448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/generateKey/{failures_Ed448.https.any.js => failures_Ed448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/generateKey/{failures_X448.https.any.js => failures_X448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/generateKey/{successes_Ed448.https.any.js => successes_Ed448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/generateKey/{successes_X448.https.any.js => successes_X448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/import_export/{okp_importKey_Ed448.https.any.js => okp_importKey_Ed448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/import_export/{okp_importKey_X448.https.any.js => okp_importKey_X448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/import_export/{okp_importKey_failures_Ed448.https.any.js => okp_importKey_failures_Ed448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/import_export/{okp_importKey_failures_X448.https.any.js => okp_importKey_failures_X448.tentative.https.any.js} (100%) rename test/fixtures/wpt/WebCryptoAPI/sign_verify/{eddsa_curve448.https.any.js => eddsa_curve448.tentative.https.any.js} (100%) diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index 34aed56641dd84..625878896c045a 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -34,7 +34,7 @@ Last update: - 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 - web-locks: https://github.com/web-platform-tests/wpt/tree/10a122a6bc/web-locks -- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/ab08796857/WebCryptoAPI +- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/7813d38f9b/WebCryptoAPI - webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/2f96fa1996/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 diff --git a/test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits_curve448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits_curve448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits_curve448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_bits_curve448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys_curve448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys_curve448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys_curve448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/cfrg_curves_keys_curve448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/generateKey/failures_Ed448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/generateKey/failures_Ed448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/generateKey/failures_Ed448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/generateKey/failures_Ed448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/generateKey/failures_X448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/generateKey/failures_X448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/generateKey/failures_X448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/generateKey/failures_X448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/generateKey/successes_Ed448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/generateKey/successes_Ed448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/generateKey/successes_Ed448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/generateKey/successes_Ed448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/generateKey/successes_X448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/generateKey/successes_X448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/generateKey/successes_X448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/generateKey/successes_X448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_Ed448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_Ed448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_Ed448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_Ed448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_X448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_X448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_X448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_X448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_Ed448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_Ed448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_Ed448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_Ed448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_X448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_X448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_X448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/import_export/okp_importKey_failures_X448.tentative.https.any.js diff --git a/test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_curve448.https.any.js b/test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_curve448.tentative.https.any.js similarity index 100% rename from test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_curve448.https.any.js rename to test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_curve448.tentative.https.any.js diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json index 86b594dd5ef9a2..df279cc4e4a368 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -96,7 +96,7 @@ "path": "web-locks" }, "WebCryptoAPI": { - "commit": "ab08796857072c5a93e27e0a25effba2e07dad11", + "commit": "7813d38f9b7673283051e5fbef273dcba3720794", "path": "WebCryptoAPI" }, "webidl/ecmascript-binding/es-exceptions": { From a9cf72b718b88ebe713df04a0e534af262478441 Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Sun, 3 Aug 2025 00:23:30 +0000 Subject: [PATCH 2/2] test: update WPT for WebCryptoAPI to 1d2c5fb36a --- test/fixtures/wpt/README.md | 2 +- test/fixtures/wpt/WebCryptoAPI/getRandomValues.any.js | 6 +++--- test/fixtures/wpt/versions.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index 625878896c045a..745a95e8ee70e0 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -34,7 +34,7 @@ Last update: - 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 - web-locks: https://github.com/web-platform-tests/wpt/tree/10a122a6bc/web-locks -- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/7813d38f9b/WebCryptoAPI +- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/WebCryptoAPI - webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/2f96fa1996/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 diff --git a/test/fixtures/wpt/WebCryptoAPI/getRandomValues.any.js b/test/fixtures/wpt/WebCryptoAPI/getRandomValues.any.js index 574134eb76dcd8..aecd38efd60bac 100644 --- a/test/fixtures/wpt/WebCryptoAPI/getRandomValues.any.js +++ b/test/fixtures/wpt/WebCryptoAPI/getRandomValues.any.js @@ -60,9 +60,9 @@ for (const array of arrays) { test(function() { const maxlength = 65536 / ctor.BYTES_PER_ELEMENT; - assert_throws_dom("QuotaExceededError", function() { - self.crypto.getRandomValues(new ctor(maxlength + 1)) - }, "crypto.getRandomValues length over 65536") + assert_throws_quotaexceedederror(() => { + self.crypto.getRandomValues(new ctor(maxlength + 1)); + }, null, null, "crypto.getRandomValues length over 65536"); }, "Large length: " + array); test(function() { diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json index df279cc4e4a368..55a3822df96d9d 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -96,7 +96,7 @@ "path": "web-locks" }, "WebCryptoAPI": { - "commit": "7813d38f9b7673283051e5fbef273dcba3720794", + "commit": "1d2c5fb36a6e477c8f915bde7eca027be6abe792", "path": "WebCryptoAPI" }, "webidl/ecmascript-binding/es-exceptions": {