Skip to content

test: update WPT resources,WebCryptoAPI,webstorage #59311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/fixtures/wpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ Last update:
- interfaces: https://github.com/web-platform-tests/wpt/tree/e1b27be06b/interfaces
- performance-timeline: https://github.com/web-platform-tests/wpt/tree/94caab7038/performance-timeline
- resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing
- resources: https://github.com/web-platform-tests/wpt/tree/1e140d63ec/resources
- resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources
- streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams
- url: https://github.com/web-platform-tests/wpt/tree/9504a83e01/url
- urlpattern: https://github.com/web-platform-tests/wpt/tree/84b75f0880/urlpattern
- 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
- 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/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
- webstorage: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/webstorage

[Web Platform Tests]: https://github.com/web-platform-tests/wpt
[`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/main/docs/git-node.md#git-node-wpt
6 changes: 3 additions & 3 deletions test/fixtures/wpt/WebCryptoAPI/getRandomValues.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/wpt/resources/channel.sub.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@
*
* @param {SendChannel|string} [dest] - Either a SendChannel
* to the destination, or the UUID of the destination. If
* omitted, a new UUID is generated, which can be used when
* ommitted, a new UUID is generated, which can be used when
* constructing the URL for the global.
*
*/
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/wpt/resources/check-layout-th.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ window.checkLayout = function(selectorList, callDone = true)
nodes = Array.prototype.slice.call(nodes);
var checkedLayout = false;
Array.prototype.forEach.call(nodes, function(node) {
const title = node.title ? `: ${node.title}` : '';
test(function(t) {
var container = node.parentNode.className == 'container' ? node.parentNode : node;
var prefix =
Expand All @@ -240,7 +241,7 @@ window.checkLayout = function(selectorList, callDone = true)
}
checkedLayout |= !passed;
}
}, selectorList + ' ' + String(++testNumber));
}, `${selectorList} ${++testNumber}${title}`);
});
if (!checkedLayout) {
console.error("No valid data-* attributes found in selector list : " + selectorList);
Expand Down
245 changes: 0 additions & 245 deletions test/fixtures/wpt/resources/check-layout.js

This file was deleted.

25 changes: 0 additions & 25 deletions test/fixtures/wpt/resources/declarative-shadow-dom-polyfill.js

This file was deleted.

61 changes: 0 additions & 61 deletions test/fixtures/wpt/resources/idlharness-shadowrealm.js

This file was deleted.

Loading
Loading