Skip to content

Commit 7571704

Browse files
cola119danielleadams
authored andcommitted
test: complete TODO in test/wpt/test-url.js
PR-URL: #43797 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 6bcd40d commit 7571704

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/wpt/test-url.js

-9
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ runner.setScriptModifier((obj) => {
1111
// created via `document.createElement`. So we need to ignore them and just
1212
// test `URL`.
1313
obj.code = obj.code.replace(/\["url", "a", "area"\]/, '[ "url" ]');
14-
} else if (typeof FormData === 'undefined' &&
15-
obj.filename.includes('urlsearchparams-constructor.any.js')) {
16-
// TODO(XadillaX): Remove this `else if` after `FormData` is supported.
17-
18-
// Ignore test named `URLSearchParams constructor, FormData.` because we do
19-
// not have `FormData`.
20-
obj.code = obj.code.replace(
21-
/('URLSearchParams constructor, object\.'\);[\w\W]+)test\(function\(\) {[\w\W]*?}, 'URLSearchParams constructor, FormData\.'\);/,
22-
'$1');
2314
}
2415
});
2516
runner.pretendGlobalThisAs('Window');

0 commit comments

Comments
 (0)