Skip to content

Commit 30dbc98

Browse files
committed
Roll tests
1 parent 8c0f670 commit 30dbc98

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

scripts/get-latest-platform-tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const path = require("path");
1313
// 1. Go to https://github.com/web-platform-tests/wpt/tree/master/url
1414
// 2. Press "y" on your keyboard to get a permalink
1515
// 3. Copy the commit hash
16-
const commitHash = "48178346fe87222856812842fb7af7b01baa1530";
16+
const commitHash = "a9fe2e77b64b0ce9aefb2ed4331c52bfa44fced4";
1717

1818
const urlPrefix = `https://raw.githubusercontent.com/web-platform-tests/wpt/${commitHash}/url/`;
1919
const targetDir = path.resolve(__dirname, "..", "test", "web-platform-tests");
@@ -24,6 +24,7 @@ const resources = [
2424
"resources/setters_tests.json",
2525
"resources/toascii.json",
2626
"resources/urltestdata.json",
27+
"resources/urltestdata-javascript-only.json",
2728
"resources/IdnaTestV2.json"
2829
];
2930

test/web-platform.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const { URL, URLSearchParams } = require("..");
1212

1313
const idnaTestV2Data = require("./web-platform-tests/resources/IdnaTestV2.json");
1414
const urlTestData = require("./web-platform-tests/resources/urltestdata.json");
15+
const urlTestDataJavaScriptOnly = require("./web-platform-tests/resources/urltestdata-javascript-only.json");
1516
const settersData = require("./web-platform-tests/resources/setters_tests.json");
1617
const percentEncodingData = require("./web-platform-tests/resources/percent-encoding.json");
1718
const toASCIIData = require("./web-platform-tests/resources/toascii.json");
@@ -42,10 +43,12 @@ describe("Data file-based web platform tests", () => {
4243

4344
runWPT("url-constructor.any.js", sandbox => {
4445
sandbox.runURLTests(urlTestData);
46+
sandbox.runURLTests(urlTestDataJavaScriptOnly);
4547
});
4648

4749
runWPT("url-origin.any.js", sandbox => {
4850
sandbox.runURLTests(urlTestData);
51+
sandbox.runURLTests(urlTestDataJavaScriptOnly);
4952
});
5053

5154
runWPT("url-setters.any.js", sandbox => {

0 commit comments

Comments
 (0)