Skip to content

Commit

Permalink
test: complete TODO in test/wpt/test-url.js
Browse files Browse the repository at this point in the history
PR-URL: #43797
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
cola119 authored and danielleadams committed Jul 26, 2022
1 parent 6bcd40d commit 7571704
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/wpt/test-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7571704

Please # to comment.