diff --git a/test/wpt/status/url.cjs b/test/wpt/status/url.cjs new file mode 100644 index 00000000000000..d7cd8a8666b262 --- /dev/null +++ b/test/wpt/status/url.cjs @@ -0,0 +1,25 @@ +'use strict'; + +module.exports = { + 'historical.any.js': { + 'fail': { + 'expected': [ + 'searchParams on location object', + ], + }, + }, + 'javascript-urls.window.js': { + 'skip': 'requires document.body reference', + }, + 'percent-encoding.window.js': { + 'skip': 'requires document.body reference', + }, + 'toascii.window.js': { + 'skipTests': [ + /\(using /, + ], + }, + 'url-setters-a-area.window.js': { + 'skip': 'already tested in url-setters.any.js', + }, +}; diff --git a/test/wpt/status/url.json b/test/wpt/status/url.json deleted file mode 100644 index 7e32f4b5371ff8..00000000000000 --- a/test/wpt/status/url.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "historical.any.js": { - "fail": { - "expected": [ - "searchParams on location object" - ] - } - }, - "javascript-urls.window.js": { - "skip": "requires document.body reference" - }, - "percent-encoding.window.js": { - "skip": "TODO: port from .window.js" - }, - "url-setters-a-area.window.js": { - "skip": "already tested in url-setters.any.js" - } -} diff --git a/test/wpt/test-url.js b/test/wpt/test-url.js index 7f1ae43fc61080..e5db8fdc720511 100644 --- a/test/wpt/test-url.js +++ b/test/wpt/test-url.js @@ -10,13 +10,5 @@ const { WPTRunner } = require('../common/wpt'); const runner = new WPTRunner('url'); -runner.setScriptModifier((obj) => { - if (obj.filename.includes('toascii.window.js')) { - // `a` and `area` in `toascii.window.js` is for testing `Element` that - // created via `document.createElement`. So we need to ignore them and just - // test `URL`. - obj.code = obj.code.replace(/\["url", "a", "area"\]/, '[ "url" ]'); - } -}); runner.pretendGlobalThisAs('Window'); runner.runJsTests();