From e898bea282a0749142e80bc10a97982aaa2755bc Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 10 Jun 2026 03:43:54 +0000 Subject: [PATCH] Sync the failure.html test recreation with upstream Upstream failure.html now also iterates urltestdata-javascript-only.json, so the manual recreation does the same. That file currently contains no failure cases without a base, so no new tests run yet, but future additions will be picked up automatically. Also update the "Last sync" comments for all three manually-recreated tests to the currently-pinned web platform tests commit; percent-encoding.window.js and toascii.window.js are unchanged upstream since the previously-recorded sync point. Co-Authored-By: Claude Fable 5 --- test/web-platform.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/web-platform.js b/test/web-platform.js index 7a58198f8..d35fa1670 100644 --- a/test/web-platform.js +++ b/test/web-platform.js @@ -64,9 +64,10 @@ describe("Data file-based web platform tests", () => { describe("Manually recreated web platform tests", () => { // Last sync: - // https://github.com/web-platform-tests/wpt/blob/6d461b4ddb2f1b8d226ca6ae92e14bbd464731a5/url/failure.html + // https://github.com/web-platform-tests/wpt/blob/06c4589623bf8f8c92fda5afabe44059a01465dc/url/failure.html describe("failure.html", () => { - for (const data of urlTestData) { + for (const data of [...urlTestData, ...urlTestDataJavaScriptOnly]) { + // Skip comments, inputs we expect to pass, and relative URLs. if (typeof data === "string" || !data.failure || data.base !== null) { continue; } @@ -90,7 +91,7 @@ describe("Manually recreated web platform tests", () => { }); // Last sync: - // https://github.com/web-platform-tests/wpt/blob/6d461b4ddb2f1b8d226ca6ae92e14bbd464731a5/url/percent-encoding.window.js + // https://github.com/web-platform-tests/wpt/blob/06c4589623bf8f8c92fda5afabe44059a01465dc/url/percent-encoding.window.js describe("percent-encoding.window.js", () => { for (const testUnit of percentEncodingData) { // Ignore comments @@ -118,7 +119,7 @@ describe("Manually recreated web platform tests", () => { }); // Last sync: - // https://github.com/web-platform-tests/wpt/blob/6d461b4ddb2f1b8d226ca6ae92e14bbd464731a5/url/toascii.window.js + // https://github.com/web-platform-tests/wpt/blob/06c4589623bf8f8c92fda5afabe44059a01465dc/url/toascii.window.js describe("toascii.window.js", () => { for (const data of toASCIIData) { if (typeof data === "string") {