diff --git a/test/wpt/test-url.js b/test/wpt/test-url.js index 419c48715feab0..cca2184b47720b 100644 --- a/test/wpt/test-url.js +++ b/test/wpt/test-url.js @@ -11,15 +11,6 @@ runner.setScriptModifier((obj) => { // created via `document.createElement`. So we need to ignore them and just // test `URL`. obj.code = obj.code.replace(/\["url", "a", "area"\]/, '[ "url" ]'); - } else if (typeof FormData === 'undefined' && - obj.filename.includes('urlsearchparams-constructor.any.js')) { - // TODO(XadillaX): Remove this `else if` after `FormData` is supported. - - // Ignore test named `URLSearchParams constructor, FormData.` because we do - // not have `FormData`. - obj.code = obj.code.replace( - /('URLSearchParams constructor, object\.'\);[\w\W]+)test\(function\(\) {[\w\W]*?}, 'URLSearchParams constructor, FormData\.'\);/, - '$1'); } }); runner.pretendGlobalThisAs('Window');