Skip to content
Open
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
25 changes: 25 additions & 0 deletions test/wpt/status/url.cjs
Original file line number Diff line number Diff line change
@@ -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 <a(rea)?>/,
],
},
'url-setters-a-area.window.js': {
'skip': 'already tested in url-setters.any.js',
},
};
18 changes: 0 additions & 18 deletions test/wpt/status/url.json

This file was deleted.

8 changes: 0 additions & 8 deletions test/wpt/test-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Loading