From 34785657fba6e0eda2981e3fa6eb12c3b66509af Mon Sep 17 00:00:00 2001 From: Kohei Ueno Date: Fri, 15 Jul 2022 00:24:00 +0900 Subject: [PATCH] test: complete TODO in test/wpt/test-url.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/43797 Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen --- test/wpt/test-url.js | 9 --------- 1 file changed, 9 deletions(-) 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');