From cdd9584894643e9d1215d3ddf1e43dd39fc8ea0e Mon Sep 17 00:00:00 2001 From: Romain Menke <11521496+romainmenke@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:24:17 +0200 Subject: [PATCH 1/3] fix resize observer (#48) see : https://github.com/juggle/resize-observer/issues/141 --- polyfills/ResizeObserver/patch.jsdiff | 36 +++++++++++++++++++++++++ polyfills/ResizeObserver/polyfill.js | 18 ++++--------- polyfills/ResizeObserver/update.task.js | 13 ++++++--- 3 files changed, 50 insertions(+), 17 deletions(-) create mode 100644 polyfills/ResizeObserver/patch.jsdiff diff --git a/polyfills/ResizeObserver/patch.jsdiff b/polyfills/ResizeObserver/patch.jsdiff new file mode 100644 index 000000000..d986658db --- /dev/null +++ b/polyfills/ResizeObserver/patch.jsdiff @@ -0,0 +1,36 @@ +=================================================================== +--- a/polyfills/ResizeObserver/polyfill.js ++++ b/polyfills/ResizeObserver/polyfill.js +@@ -1,8 +1,4 @@ +-(function (global, factory) { +- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : +- typeof define === 'function' && define.amd ? define(['exports'], factory) : +- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ResizeObserver = {})); +-})(this, (function (exports) { 'use strict'; ++(function (global) { + + var resizeObservers = []; + +@@ -109,7 +105,7 @@ + + var cache = new WeakMap(); + var scrollRegexp = /auto|scroll/; +- var verticalRegexp = /^tb|vertical/; ++ var verticalRegexp = /^tb|^vertical/; + var IE = (/msie|trident/i).test(global.navigator && global.navigator.userAgent); + var parseDimension = function (pixel) { return parseFloat(pixel || '0'); }; + var size = function (inlineSize, blockSize, switchSizes) { +@@ -503,10 +499,7 @@ + return ResizeObserver; + }()); + +- exports.ResizeObserver = ResizeObserver; +- exports.ResizeObserverEntry = ResizeObserverEntry; +- exports.ResizeObserverSize = ResizeObserverSize; ++ global.ResizeObserver = ResizeObserver; ++ global.ResizeObserverEntry = ResizeObserverEntry; + +- Object.defineProperty(exports, '__esModule', { value: true }); +- +-})); ++}(self)); diff --git a/polyfills/ResizeObserver/polyfill.js b/polyfills/ResizeObserver/polyfill.js index 2908df08a..6dd4cc2de 100644 --- a/polyfills/ResizeObserver/polyfill.js +++ b/polyfills/ResizeObserver/polyfill.js @@ -1,8 +1,4 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ResizeObserver = {})); -})(this, (function (exports) { 'use strict'; +(function (global) { var resizeObservers = []; @@ -109,7 +105,7 @@ var cache = new WeakMap(); var scrollRegexp = /auto|scroll/; - var verticalRegexp = /^tb|vertical/; + var verticalRegexp = /^tb|^vertical/; var IE = (/msie|trident/i).test(global.navigator && global.navigator.userAgent); var parseDimension = function (pixel) { return parseFloat(pixel || '0'); }; var size = function (inlineSize, blockSize, switchSizes) { @@ -503,11 +499,7 @@ return ResizeObserver; }()); - exports.ResizeObserver = ResizeObserver; - exports.ResizeObserverEntry = ResizeObserverEntry; - exports.ResizeObserverSize = ResizeObserverSize; + global.ResizeObserver = ResizeObserver; + global.ResizeObserverEntry = ResizeObserverEntry; - Object.defineProperty(exports, '__esModule', { value: true }); - -})); -;self.ResizeObserverEntry = ResizeObserver.ResizeObserverEntry;self.ResizeObserver=ResizeObserver.ResizeObserver; \ No newline at end of file +}(self)); diff --git a/polyfills/ResizeObserver/update.task.js b/polyfills/ResizeObserver/update.task.js index 1efc742b1..acf900af9 100644 --- a/polyfills/ResizeObserver/update.task.js +++ b/polyfills/ResizeObserver/update.task.js @@ -1,9 +1,14 @@ 'use strict'; var fs = require('fs'); +var diff = require('diff'); +var process = require('process'); var path = require('path'); -var resizeObserverPolyfillOutput = path.resolve('polyfills/ResizeObserver/polyfill.js'); -var polyfill = fs.readFileSync(resizeObserverPolyfillOutput, 'utf-8'); -polyfill += ';self.ResizeObserverEntry = ResizeObserver.ResizeObserverEntry;self.ResizeObserver=ResizeObserver.ResizeObserver;' -fs.writeFileSync(resizeObserverPolyfillOutput, polyfill, 'utf-8'); +var polyfill = fs.readFileSync(path.join(__dirname, './polyfill.js'), 'utf8'); +var patch = fs.readFileSync(path.join(__dirname, './patch.jsdiff'), 'utf8'); + +var patched = diff.applyPatch(polyfill, patch); + +if (patched === false) {process.exit(1);} +fs.writeFileSync(path.join(__dirname, './polyfill.js'), patched); From 5420538b75219d509924eca9c8475d35a9c94629 Mon Sep 17 00:00:00 2001 From: Romain Menke <11521496+romainmenke@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:43:24 +0200 Subject: [PATCH 2/3] rename test files (#45) resolves : https://github.com/mrhenry/polyfill-library/issues/36 --- .github/contributing.md | 4 ++-- eslint.config.mjs | 9 ++++----- lib/index.js | 4 ++-- polyfills/AbortController/{tests.js => polyfill.test.js} | 0 polyfills/AggregateError/{tests.js => polyfill.test.js} | 0 polyfills/Array/from/{tests.js => polyfill.test.js} | 0 polyfills/Array/of/{tests.js => polyfill.test.js} | 0 .../prototype/@@iterator/{tests.js => polyfill.test.js} | 0 .../Array/prototype/at/{tests.js => polyfill.test.js} | 0 .../prototype/copyWithin/{tests.js => polyfill.test.js} | 0 .../prototype/entries/{tests.js => polyfill.test.js} | 0 .../Array/prototype/fill/{tests.js => polyfill.test.js} | 0 .../Array/prototype/find/{tests.js => polyfill.test.js} | 0 .../prototype/findIndex/{tests.js => polyfill.test.js} | 0 .../prototype/findLast/{tests.js => polyfill.test.js} | 0 .../findLastIndex/{tests.js => polyfill.test.js} | 0 .../Array/prototype/flat/{tests.js => polyfill.test.js} | 0 .../prototype/flatMap/{tests.js => polyfill.test.js} | 0 .../prototype/includes/{tests.js => polyfill.test.js} | 0 .../Array/prototype/keys/{tests.js => polyfill.test.js} | 0 .../Array/prototype/sort/{tests.js => polyfill.test.js} | 0 .../prototype/toReversed/{tests.js => polyfill.test.js} | 0 .../prototype/toSorted/{tests.js => polyfill.test.js} | 0 .../prototype/toSpliced/{tests.js => polyfill.test.js} | 0 .../prototype/values/{tests.js => polyfill.test.js} | 0 .../Array/prototype/with/{tests.js => polyfill.test.js} | 0 .../ArrayBuffer/isView/{tests.js => polyfill.test.js} | 0 polyfills/ArrayBuffer/{tests.js => polyfill.test.js} | 0 .../@@toStringTag/{tests.js => polyfill.test.js} | 0 polyfills/Blob/{tests.js => polyfill.test.js} | 0 polyfills/CSS/supports/{tests.js => polyfill.test.js} | 0 polyfills/CustomEvent/{tests.js => polyfill.test.js} | 0 .../DOMRect/fromRect/{tests.js => polyfill.test.js} | 0 polyfills/DOMRect/{tests.js => polyfill.test.js} | 0 .../prototype/@@iterator/{tests.js => polyfill.test.js} | 0 .../prototype/forEach/{tests.js => polyfill.test.js} | 0 .../prototype/replace/{tests.js => polyfill.test.js} | 0 .../DocumentFragment/{tests.js => polyfill.test.js} | 0 .../prototype/append/{tests.js => polyfill.test.js} | 0 .../prototype/prepend/{tests.js => polyfill.test.js} | 0 .../replaceChildren/{tests.js => polyfill.test.js} | 0 .../prototype/after/{tests.js => polyfill.test.js} | 0 .../prototype/append/{tests.js => polyfill.test.js} | 0 .../prototype/before/{tests.js => polyfill.test.js} | 0 .../prototype/classList/{tests.js => polyfill.test.js} | 0 .../prototype/closest/{tests.js => polyfill.test.js} | 0 .../prototype/dataset/{tests.js => polyfill.test.js} | 0 .../getAttributeNames/{tests.js => polyfill.test.js} | 0 .../prototype/matches/{tests.js => polyfill.test.js} | 0 .../prototype/prepend/{tests.js => polyfill.test.js} | 0 .../prototype/remove/{tests.js => polyfill.test.js} | 0 .../replaceChildren/{tests.js => polyfill.test.js} | 0 .../prototype/replaceWith/{tests.js => polyfill.test.js} | 0 .../toggleAttribute/{tests.js => polyfill.test.js} | 0 polyfills/Error/cause/{tests.js => polyfill.test.js} | 0 polyfills/Event/focusin/{tests.js => polyfill.test.js} | 0 .../Event/hashchange/{tests.js => polyfill.test.js} | 0 polyfills/Event/{tests.js => polyfill.test.js} | 0 polyfills/Event/scrollend/{tests.js => polyfill.test.js} | 0 .../prototype/name/{tests.js => polyfill.test.js} | 0 .../prototype/toBlob/{tests.js => polyfill.test.js} | 0 .../prototype/@@iterator/{tests.js => polyfill.test.js} | 0 .../prototype/inert/{tests.js => polyfill.test.js} | 0 .../requestSubmit/{tests.js => polyfill.test.js} | 0 .../{generated_tests.js => generated.test.js} | 2 +- .../prototype/valueAsDate/{tests.js => polyfill.test.js} | 0 .../selectedOptions/{tests.js => polyfill.test.js} | 0 .../HTMLTemplateElement/{tests.js => polyfill.test.js} | 0 .../IntersectionObserver/{tests.js => polyfill.test.js} | 0 .../{tests.js => polyfill.test.js} | 0 .../Intl/DateTimeFormat/{tests.js => polyfill.test.js} | 0 .../~timeZone/all/{tests.js => polyfill.test.js} | 0 .../~timeZone/golden/{tests.js => polyfill.test.js} | 0 .../Intl/DisplayNames/{tests.js => polyfill.test.js} | 0 polyfills/Intl/ListFormat/{tests.js => polyfill.test.js} | 0 polyfills/Intl/Locale/{tests.js => polyfill.test.js} | 0 .../Intl/NumberFormat/{tests.js => polyfill.test.js} | 0 .../Intl/PluralRules/{tests.js => polyfill.test.js} | 0 .../RelativeTimeFormat/{tests.js => polyfill.test.js} | 0 .../getCanonicalLocales/{tests.js => polyfill.test.js} | 0 polyfills/Map/groupBy/{tests.js => polyfill.test.js} | 0 polyfills/Map/{tests.js => polyfill.test.js} | 0 polyfills/Math/acosh/{tests.js => polyfill.test.js} | 0 polyfills/Math/asinh/{tests.js => polyfill.test.js} | 0 polyfills/Math/atanh/{tests.js => polyfill.test.js} | 0 polyfills/Math/cbrt/{tests.js => polyfill.test.js} | 0 polyfills/Math/clz32/{tests.js => polyfill.test.js} | 0 polyfills/Math/cosh/{tests.js => polyfill.test.js} | 0 polyfills/Math/expm1/{tests.js => polyfill.test.js} | 0 polyfills/Math/hypot/{tests.js => polyfill.test.js} | 0 polyfills/Math/imul/{tests.js => polyfill.test.js} | 0 polyfills/Math/log10/{tests.js => polyfill.test.js} | 0 polyfills/Math/log1p/{tests.js => polyfill.test.js} | 0 polyfills/Math/log2/{tests.js => polyfill.test.js} | 0 polyfills/Math/sign/{tests.js => polyfill.test.js} | 0 polyfills/Math/sinh/{tests.js => polyfill.test.js} | 0 polyfills/Math/tanh/{tests.js => polyfill.test.js} | 0 polyfills/Math/trunc/{tests.js => polyfill.test.js} | 0 .../addEventListener/{tests.js => polyfill.test.js} | 0 .../prototype/contains/{tests.js => polyfill.test.js} | 0 .../prototype/getRootNode/{tests.js => polyfill.test.js} | 0 .../prototype/isConnected/{tests.js => polyfill.test.js} | 0 .../prototype/isSameNode/{tests.js => polyfill.test.js} | 0 .../prototype/@@iterator/{tests.js => polyfill.test.js} | 0 .../prototype/forEach/{tests.js => polyfill.test.js} | 0 polyfills/Number/Epsilon/{tests.js => polyfill.test.js} | 0 .../MAX_SAFE_INTEGER/{tests.js => polyfill.test.js} | 0 .../MIN_SAFE_INTEGER/{tests.js => polyfill.test.js} | 0 polyfills/Number/isFinite/{tests.js => polyfill.test.js} | 0 .../Number/isInteger/{tests.js => polyfill.test.js} | 0 polyfills/Number/isNaN/{tests.js => polyfill.test.js} | 0 .../Number/isSafeInteger/{tests.js => polyfill.test.js} | 0 .../Number/parseFloat/{tests.js => polyfill.test.js} | 0 polyfills/Number/parseInt/{tests.js => polyfill.test.js} | 0 polyfills/Object/assign/{tests.js => polyfill.test.js} | 0 polyfills/Object/entries/{tests.js => polyfill.test.js} | 0 polyfills/Object/freeze/{tests.js => polyfill.test.js} | 0 .../Object/fromEntries/{tests.js => polyfill.test.js} | 0 .../{tests.js => polyfill.test.js} | 0 .../{tests.js => polyfill.test.js} | 0 .../getOwnPropertyNames/{tests.js => polyfill.test.js} | 0 polyfills/Object/groupBy/{tests.js => polyfill.test.js} | 0 polyfills/Object/hasOwn/{tests.js => polyfill.test.js} | 0 polyfills/Object/is/{tests.js => polyfill.test.js} | 0 .../Object/isExtensible/{tests.js => polyfill.test.js} | 0 polyfills/Object/isFrozen/{tests.js => polyfill.test.js} | 0 polyfills/Object/isSealed/{tests.js => polyfill.test.js} | 0 polyfills/Object/keys/{tests.js => polyfill.test.js} | 0 .../preventExtensions/{tests.js => polyfill.test.js} | 0 .../prototype/toString/{tests.js => polyfill.test.js} | 0 polyfills/Object/seal/{tests.js => polyfill.test.js} | 0 .../Object/setPrototypeOf/{tests.js => polyfill.test.js} | 0 polyfills/Object/values/{tests.js => polyfill.test.js} | 0 .../Promise/allSettled/{tests.js => polyfill.test.js} | 0 polyfills/Promise/any/{tests.js => polyfill.test.js} | 0 polyfills/Promise/{tests.js => polyfill.test.js} | 0 .../prototype/finally/{tests.js => polyfill.test.js} | 0 .../Promise/withResolvers/{tests.js => polyfill.test.js} | 0 polyfills/Reflect/apply/{tests.js => polyfill.test.js} | 0 .../Reflect/construct/{tests.js => polyfill.test.js} | 0 .../defineProperty/{tests.js => polyfill.test.js} | 0 .../deleteProperty/{tests.js => polyfill.test.js} | 0 polyfills/Reflect/get/{tests.js => polyfill.test.js} | 0 .../{tests.js => polyfill.test.js} | 0 .../getPrototypeOf/{tests.js => polyfill.test.js} | 0 polyfills/Reflect/has/{tests.js => polyfill.test.js} | 0 .../Reflect/isExtensible/{tests.js => polyfill.test.js} | 0 polyfills/Reflect/ownKeys/{tests.js => polyfill.test.js} | 0 polyfills/Reflect/{tests.js => polyfill.test.js} | 0 .../preventExtensions/{tests.js => polyfill.test.js} | 0 polyfills/Reflect/set/{tests.js => polyfill.test.js} | 0 .../setPrototypeOf/{tests.js => polyfill.test.js} | 0 .../prototype/@@matchAll/{tests.js => polyfill.test.js} | 0 .../prototype/flags/{tests.js => polyfill.test.js} | 0 polyfills/ResizeObserver/{tests.js => polyfill.test.js} | 0 polyfills/Set/{tests.js => polyfill.test.js} | 0 .../prototype/difference/{tests.js => polyfill.test.js} | 0 .../intersection/{tests.js => polyfill.test.js} | 0 .../isDisjointFrom/{tests.js => polyfill.test.js} | 0 .../prototype/isSubsetOf/{tests.js => polyfill.test.js} | 0 .../isSupersetOf/{tests.js => polyfill.test.js} | 0 .../symmetricDifference/{tests.js => polyfill.test.js} | 0 .../Set/prototype/union/{tests.js => polyfill.test.js} | 0 .../String/fromCodePoint/{tests.js => polyfill.test.js} | 0 .../prototype/@@iterator/{tests.js => polyfill.test.js} | 0 .../String/prototype/at/{tests.js => polyfill.test.js} | 0 .../prototype/codePointAt/{tests.js => polyfill.test.js} | 0 .../prototype/endsWith/{tests.js => polyfill.test.js} | 0 .../prototype/includes/{tests.js => polyfill.test.js} | 0 .../isWellFormed/{tests.js => polyfill.test.js} | 0 .../prototype/matchAll/{tests.js => polyfill.test.js} | 0 .../prototype/normalize/{tests.js => polyfill.test.js} | 0 .../prototype/padEnd/{tests.js => polyfill.test.js} | 0 .../prototype/padStart/{tests.js => polyfill.test.js} | 0 .../prototype/repeat/{tests.js => polyfill.test.js} | 0 .../prototype/replaceAll/{tests.js => polyfill.test.js} | 0 .../prototype/startsWith/{tests.js => polyfill.test.js} | 0 .../toWellFormed/{tests.js => polyfill.test.js} | 0 .../String/prototype/trim/{tests.js => polyfill.test.js} | 0 .../prototype/trimEnd/{tests.js => polyfill.test.js} | 0 .../prototype/trimStart/{tests.js => polyfill.test.js} | 0 polyfills/String/raw/{tests.js => polyfill.test.js} | 0 .../Symbol/asyncIterator/{tests.js => polyfill.test.js} | 0 .../Symbol/hasInstance/{tests.js => polyfill.test.js} | 0 .../isConcatSpreadable/{tests.js => polyfill.test.js} | 0 polyfills/Symbol/iterator/{tests.js => polyfill.test.js} | 0 polyfills/Symbol/match/{tests.js => polyfill.test.js} | 0 polyfills/Symbol/matchAll/{tests.js => polyfill.test.js} | 0 polyfills/Symbol/{tests.js => polyfill.test.js} | 0 .../prototype/description/{tests.js => polyfill.test.js} | 0 polyfills/Symbol/replace/{tests.js => polyfill.test.js} | 0 polyfills/Symbol/search/{tests.js => polyfill.test.js} | 0 polyfills/Symbol/species/{tests.js => polyfill.test.js} | 0 polyfills/Symbol/split/{tests.js => polyfill.test.js} | 0 .../Symbol/toPrimitive/{tests.js => polyfill.test.js} | 0 .../Symbol/toStringTag/{tests.js => polyfill.test.js} | 0 .../Symbol/unscopables/{tests.js => polyfill.test.js} | 0 polyfills/TextEncoder/{tests.js => polyfill.test.js} | 0 .../prototype/@@iterator/{tests.js => polyfill.test.js} | 0 .../@@toStringTag/{tests.js => polyfill.test.js} | 0 .../prototype/at/{tests.js => polyfill.test.js} | 0 .../prototype/entries/{tests.js => polyfill.test.js} | 0 .../prototype/findLast/{tests.js => polyfill.test.js} | 0 .../findLastIndex/{tests.js => polyfill.test.js} | 0 .../prototype/keys/{tests.js => polyfill.test.js} | 0 .../prototype/sort/{tests.js => polyfill.test.js} | 0 .../toLocaleString/{tests.js => polyfill.test.js} | 0 .../prototype/toReversed/{tests.js => polyfill.test.js} | 0 .../prototype/toSorted/{tests.js => polyfill.test.js} | 0 .../prototype/toString/{tests.js => polyfill.test.js} | 0 .../prototype/values/{tests.js => polyfill.test.js} | 0 .../prototype/with/{tests.js => polyfill.test.js} | 0 polyfills/URL/{tests.js => polyfill.test.js} | 0 .../URL/prototype/toJSON/{tests.js => polyfill.test.js} | 0 polyfills/UserTiming/{tests.js => polyfill.test.js} | 0 polyfills/WeakMap/{tests.js => polyfill.test.js} | 0 polyfills/WeakSet/{tests.js => polyfill.test.js} | 0 polyfills/atob/{tests.js => polyfill.test.js} | 0 polyfills/console/assert/{tests.js => polyfill.test.js} | 0 polyfills/console/clear/{tests.js => polyfill.test.js} | 0 polyfills/console/count/{tests.js => polyfill.test.js} | 0 polyfills/console/debug/{tests.js => polyfill.test.js} | 0 polyfills/console/dir/{tests.js => polyfill.test.js} | 0 polyfills/console/dirxml/{tests.js => polyfill.test.js} | 0 polyfills/console/error/{tests.js => polyfill.test.js} | 0 .../console/exception/{tests.js => polyfill.test.js} | 0 polyfills/console/group/{tests.js => polyfill.test.js} | 0 .../groupCollapsed/{tests.js => polyfill.test.js} | 0 .../console/groupEnd/{tests.js => polyfill.test.js} | 0 polyfills/console/info/{tests.js => polyfill.test.js} | 0 polyfills/console/log/{tests.js => polyfill.test.js} | 0 .../console/markTimeline/{tests.js => polyfill.test.js} | 0 polyfills/console/{tests.js => polyfill.test.js} | 0 polyfills/console/profile/{tests.js => polyfill.test.js} | 0 .../console/profileEnd/{tests.js => polyfill.test.js} | 0 .../console/profiles/{tests.js => polyfill.test.js} | 0 polyfills/console/table/{tests.js => polyfill.test.js} | 0 polyfills/console/time/{tests.js => polyfill.test.js} | 0 polyfills/console/timeEnd/{tests.js => polyfill.test.js} | 0 .../console/timeStamp/{tests.js => polyfill.test.js} | 0 .../console/timeline/{tests.js => polyfill.test.js} | 0 .../console/timelineEnd/{tests.js => polyfill.test.js} | 0 polyfills/console/trace/{tests.js => polyfill.test.js} | 0 polyfills/console/warn/{tests.js => polyfill.test.js} | 0 .../currentScript/{tests.js => polyfill.test.js} | 2 +- .../elementsFromPoint/{tests.js => polyfill.test.js} | 0 .../visibilityState/{tests.js => polyfill.test.js} | 0 polyfills/fetch/{tests.js => polyfill.test.js} | 0 polyfills/globalThis/{tests.js => polyfill.test.js} | 0 polyfills/location/origin/{tests.js => polyfill.test.js} | 0 polyfills/matchMedia/{tests.js => polyfill.test.js} | 0 polyfills/queueMicrotask/{tests.js => polyfill.test.js} | 0 .../requestAnimationFrame/{tests.js => polyfill.test.js} | 0 .../requestIdleCallback/{tests.js => polyfill.test.js} | 0 .../screen/orientation/{tests.js => polyfill.test.js} | 0 polyfills/setImmediate/{tests.js => polyfill.test.js} | 0 polyfills/smoothscroll/{tests.js => polyfill.test.js} | 0 polyfills/structuredClone/{tests.js => polyfill.test.js} | 0 tasks/buildsources/polyfill.js | 6 +++--- tasks/create-new-polyfill.js | 4 ++-- tasks/polyfill-templates/{tests.js => polyfill.test.js} | 0 test/polyfills/server.js | 4 ++-- test/polyfills/test-runner.handlebars | 2 +- 263 files changed, 18 insertions(+), 19 deletions(-) rename polyfills/AbortController/{tests.js => polyfill.test.js} (100%) rename polyfills/AggregateError/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/from/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/of/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/@@iterator/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/at/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/copyWithin/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/entries/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/fill/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/find/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/findIndex/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/findLast/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/findLastIndex/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/flat/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/flatMap/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/includes/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/keys/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/sort/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/toReversed/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/toSorted/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/toSpliced/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/values/{tests.js => polyfill.test.js} (100%) rename polyfills/Array/prototype/with/{tests.js => polyfill.test.js} (100%) rename polyfills/ArrayBuffer/isView/{tests.js => polyfill.test.js} (100%) rename polyfills/ArrayBuffer/{tests.js => polyfill.test.js} (100%) rename polyfills/ArrayBuffer/prototype/@@toStringTag/{tests.js => polyfill.test.js} (100%) rename polyfills/Blob/{tests.js => polyfill.test.js} (100%) rename polyfills/CSS/supports/{tests.js => polyfill.test.js} (100%) rename polyfills/CustomEvent/{tests.js => polyfill.test.js} (100%) rename polyfills/DOMRect/fromRect/{tests.js => polyfill.test.js} (100%) rename polyfills/DOMRect/{tests.js => polyfill.test.js} (100%) rename polyfills/DOMTokenList/prototype/@@iterator/{tests.js => polyfill.test.js} (100%) rename polyfills/DOMTokenList/prototype/forEach/{tests.js => polyfill.test.js} (100%) rename polyfills/DOMTokenList/prototype/replace/{tests.js => polyfill.test.js} (100%) rename polyfills/DocumentFragment/{tests.js => polyfill.test.js} (100%) rename polyfills/DocumentFragment/prototype/append/{tests.js => polyfill.test.js} (100%) rename polyfills/DocumentFragment/prototype/prepend/{tests.js => polyfill.test.js} (100%) rename polyfills/DocumentFragment/prototype/replaceChildren/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/after/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/append/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/before/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/classList/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/closest/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/dataset/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/getAttributeNames/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/matches/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/prepend/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/remove/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/replaceChildren/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/replaceWith/{tests.js => polyfill.test.js} (100%) rename polyfills/Element/prototype/toggleAttribute/{tests.js => polyfill.test.js} (100%) rename polyfills/Error/cause/{tests.js => polyfill.test.js} (100%) rename polyfills/Event/focusin/{tests.js => polyfill.test.js} (100%) rename polyfills/Event/hashchange/{tests.js => polyfill.test.js} (100%) rename polyfills/Event/{tests.js => polyfill.test.js} (100%) rename polyfills/Event/scrollend/{tests.js => polyfill.test.js} (100%) rename polyfills/Function/prototype/name/{tests.js => polyfill.test.js} (100%) rename polyfills/HTMLCanvasElement/prototype/toBlob/{tests.js => polyfill.test.js} (100%) rename polyfills/HTMLCollection/prototype/@@iterator/{tests.js => polyfill.test.js} (100%) rename polyfills/HTMLElement/prototype/inert/{tests.js => polyfill.test.js} (100%) rename polyfills/HTMLFormElement/prototype/requestSubmit/{tests.js => polyfill.test.js} (100%) rename polyfills/HTMLInputElement/prototype/valueAsDate/{generated_tests.js => generated.test.js} (99%) rename polyfills/HTMLInputElement/prototype/valueAsDate/{tests.js => polyfill.test.js} (100%) rename polyfills/HTMLSelectElement/prototype/selectedOptions/{tests.js => polyfill.test.js} (100%) rename polyfills/HTMLTemplateElement/{tests.js => polyfill.test.js} (100%) rename polyfills/IntersectionObserver/{tests.js => polyfill.test.js} (100%) rename polyfills/IntersectionObserverEntry/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/DateTimeFormat/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/DateTimeFormat/~timeZone/all/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/DateTimeFormat/~timeZone/golden/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/DisplayNames/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/ListFormat/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/Locale/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/NumberFormat/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/PluralRules/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/RelativeTimeFormat/{tests.js => polyfill.test.js} (100%) rename polyfills/Intl/getCanonicalLocales/{tests.js => polyfill.test.js} (100%) rename polyfills/Map/groupBy/{tests.js => polyfill.test.js} (100%) rename polyfills/Map/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/acosh/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/asinh/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/atanh/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/cbrt/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/clz32/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/cosh/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/expm1/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/hypot/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/imul/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/log10/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/log1p/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/log2/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/sign/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/sinh/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/tanh/{tests.js => polyfill.test.js} (100%) rename polyfills/Math/trunc/{tests.js => polyfill.test.js} (100%) rename polyfills/MediaQueryList/prototype/addEventListener/{tests.js => polyfill.test.js} (100%) rename polyfills/Node/prototype/contains/{tests.js => polyfill.test.js} (100%) rename polyfills/Node/prototype/getRootNode/{tests.js => polyfill.test.js} (100%) rename polyfills/Node/prototype/isConnected/{tests.js => polyfill.test.js} (100%) rename polyfills/Node/prototype/isSameNode/{tests.js => polyfill.test.js} (100%) rename polyfills/NodeList/prototype/@@iterator/{tests.js => polyfill.test.js} (100%) rename polyfills/NodeList/prototype/forEach/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/Epsilon/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/MAX_SAFE_INTEGER/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/MIN_SAFE_INTEGER/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/isFinite/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/isInteger/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/isNaN/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/isSafeInteger/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/parseFloat/{tests.js => polyfill.test.js} (100%) rename polyfills/Number/parseInt/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/assign/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/entries/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/freeze/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/fromEntries/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/getOwnPropertyDescriptor/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/getOwnPropertyDescriptors/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/getOwnPropertyNames/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/groupBy/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/hasOwn/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/is/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/isExtensible/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/isFrozen/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/isSealed/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/keys/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/preventExtensions/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/prototype/toString/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/seal/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/setPrototypeOf/{tests.js => polyfill.test.js} (100%) rename polyfills/Object/values/{tests.js => polyfill.test.js} (100%) rename polyfills/Promise/allSettled/{tests.js => polyfill.test.js} (100%) rename polyfills/Promise/any/{tests.js => polyfill.test.js} (100%) rename polyfills/Promise/{tests.js => polyfill.test.js} (100%) rename polyfills/Promise/prototype/finally/{tests.js => polyfill.test.js} (100%) rename polyfills/Promise/withResolvers/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/apply/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/construct/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/defineProperty/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/deleteProperty/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/get/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/getOwnPropertyDescriptor/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/getPrototypeOf/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/has/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/isExtensible/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/ownKeys/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/preventExtensions/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/set/{tests.js => polyfill.test.js} (100%) rename polyfills/Reflect/setPrototypeOf/{tests.js => polyfill.test.js} (100%) rename polyfills/RegExp/prototype/@@matchAll/{tests.js => polyfill.test.js} (100%) rename polyfills/RegExp/prototype/flags/{tests.js => polyfill.test.js} (100%) rename polyfills/ResizeObserver/{tests.js => polyfill.test.js} (100%) rename polyfills/Set/{tests.js => polyfill.test.js} (100%) rename polyfills/Set/prototype/difference/{tests.js => polyfill.test.js} (100%) rename polyfills/Set/prototype/intersection/{tests.js => polyfill.test.js} (100%) rename polyfills/Set/prototype/isDisjointFrom/{tests.js => polyfill.test.js} (100%) rename polyfills/Set/prototype/isSubsetOf/{tests.js => polyfill.test.js} (100%) rename polyfills/Set/prototype/isSupersetOf/{tests.js => polyfill.test.js} (100%) rename polyfills/Set/prototype/symmetricDifference/{tests.js => polyfill.test.js} (100%) rename polyfills/Set/prototype/union/{tests.js => polyfill.test.js} (100%) rename polyfills/String/fromCodePoint/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/@@iterator/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/at/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/codePointAt/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/endsWith/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/includes/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/isWellFormed/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/matchAll/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/normalize/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/padEnd/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/padStart/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/repeat/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/replaceAll/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/startsWith/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/toWellFormed/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/trim/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/trimEnd/{tests.js => polyfill.test.js} (100%) rename polyfills/String/prototype/trimStart/{tests.js => polyfill.test.js} (100%) rename polyfills/String/raw/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/asyncIterator/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/hasInstance/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/isConcatSpreadable/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/iterator/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/match/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/matchAll/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/prototype/description/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/replace/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/search/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/species/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/split/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/toPrimitive/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/toStringTag/{tests.js => polyfill.test.js} (100%) rename polyfills/Symbol/unscopables/{tests.js => polyfill.test.js} (100%) rename polyfills/TextEncoder/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/@@iterator/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/@@toStringTag/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/at/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/entries/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/findLast/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/findLastIndex/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/keys/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/sort/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/toLocaleString/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/toReversed/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/toSorted/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/toString/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/values/{tests.js => polyfill.test.js} (100%) rename polyfills/TypedArray/prototype/with/{tests.js => polyfill.test.js} (100%) rename polyfills/URL/{tests.js => polyfill.test.js} (100%) rename polyfills/URL/prototype/toJSON/{tests.js => polyfill.test.js} (100%) rename polyfills/UserTiming/{tests.js => polyfill.test.js} (100%) rename polyfills/WeakMap/{tests.js => polyfill.test.js} (100%) rename polyfills/WeakSet/{tests.js => polyfill.test.js} (100%) rename polyfills/atob/{tests.js => polyfill.test.js} (100%) rename polyfills/console/assert/{tests.js => polyfill.test.js} (100%) rename polyfills/console/clear/{tests.js => polyfill.test.js} (100%) rename polyfills/console/count/{tests.js => polyfill.test.js} (100%) rename polyfills/console/debug/{tests.js => polyfill.test.js} (100%) rename polyfills/console/dir/{tests.js => polyfill.test.js} (100%) rename polyfills/console/dirxml/{tests.js => polyfill.test.js} (100%) rename polyfills/console/error/{tests.js => polyfill.test.js} (100%) rename polyfills/console/exception/{tests.js => polyfill.test.js} (100%) rename polyfills/console/group/{tests.js => polyfill.test.js} (100%) rename polyfills/console/groupCollapsed/{tests.js => polyfill.test.js} (100%) rename polyfills/console/groupEnd/{tests.js => polyfill.test.js} (100%) rename polyfills/console/info/{tests.js => polyfill.test.js} (100%) rename polyfills/console/log/{tests.js => polyfill.test.js} (100%) rename polyfills/console/markTimeline/{tests.js => polyfill.test.js} (100%) rename polyfills/console/{tests.js => polyfill.test.js} (100%) rename polyfills/console/profile/{tests.js => polyfill.test.js} (100%) rename polyfills/console/profileEnd/{tests.js => polyfill.test.js} (100%) rename polyfills/console/profiles/{tests.js => polyfill.test.js} (100%) rename polyfills/console/table/{tests.js => polyfill.test.js} (100%) rename polyfills/console/time/{tests.js => polyfill.test.js} (100%) rename polyfills/console/timeEnd/{tests.js => polyfill.test.js} (100%) rename polyfills/console/timeStamp/{tests.js => polyfill.test.js} (100%) rename polyfills/console/timeline/{tests.js => polyfill.test.js} (100%) rename polyfills/console/timelineEnd/{tests.js => polyfill.test.js} (100%) rename polyfills/console/trace/{tests.js => polyfill.test.js} (100%) rename polyfills/console/warn/{tests.js => polyfill.test.js} (100%) rename polyfills/document/currentScript/{tests.js => polyfill.test.js} (89%) rename polyfills/document/elementsFromPoint/{tests.js => polyfill.test.js} (100%) rename polyfills/document/visibilityState/{tests.js => polyfill.test.js} (100%) rename polyfills/fetch/{tests.js => polyfill.test.js} (100%) rename polyfills/globalThis/{tests.js => polyfill.test.js} (100%) rename polyfills/location/origin/{tests.js => polyfill.test.js} (100%) rename polyfills/matchMedia/{tests.js => polyfill.test.js} (100%) rename polyfills/queueMicrotask/{tests.js => polyfill.test.js} (100%) rename polyfills/requestAnimationFrame/{tests.js => polyfill.test.js} (100%) rename polyfills/requestIdleCallback/{tests.js => polyfill.test.js} (100%) rename polyfills/screen/orientation/{tests.js => polyfill.test.js} (100%) rename polyfills/setImmediate/{tests.js => polyfill.test.js} (100%) rename polyfills/smoothscroll/{tests.js => polyfill.test.js} (100%) rename polyfills/structuredClone/{tests.js => polyfill.test.js} (100%) rename tasks/polyfill-templates/{tests.js => polyfill.test.js} (100%) diff --git a/.github/contributing.md b/.github/contributing.md index f0ad6e5b9..0c19eda50 100644 --- a/.github/contributing.md +++ b/.github/contributing.md @@ -30,7 +30,7 @@ This folder contains 4 files: - [config.toml](#configtoml) - [detect.js](#detectjs) - [polyfill.js](#polyfilljs) -- [tests.js](#testsjs) +- [polyfill.test.js](#polyfilltestjs) ### config.toml @@ -127,7 +127,7 @@ If your polyfill requires other features to work [list them in the config file]( Make sure your polyfill [does not squat on proposed names in speculative polyfills](https://www.w3.org/2001/tag/doc/polyfills/#don-t-squat-on-proposed-names-in-speculative-polyfills). -### tests.js +### polyfill.test.js You should refer to the feature's specification to see how the feature should work. diff --git a/eslint.config.mjs b/eslint.config.mjs index b66f7ed80..9a9acce13 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -39,7 +39,7 @@ const ignores = [ // We ignore the polyfill.js files for third-party polyfills // because we do not control their implementation. - // We do not ignore the config.json, detect.js or tests.js + // We do not ignore the config.json, detect.js or polyfill.test.js // because we do control their implementation. "polyfills/AbortController/polyfill.js", "polyfills/ArrayBuffer/polyfill.js", @@ -94,7 +94,7 @@ export default [ ignores: [ "tasks/polyfill-templates/polyfill.js", "tasks/polyfill-templates/detect.js", - "tasks/polyfill-templates/tests.js", + "tasks/polyfill-templates/polyfill.test.js", ], languageOptions: { ecmaVersion: 2022, @@ -175,9 +175,8 @@ export default [ }, { files: [ - "polyfills/**/tests.js", - "polyfills/**/*_tests.js", - "tasks/polyfill-templates/tests.js", + "polyfills/**/*.test.js", + "tasks/polyfill-templates/*.test.js", ], languageOptions: { ...browserScriptDefaults.languageOptions, diff --git a/lib/index.js b/lib/index.js index 487500afb..e890ea6e8 100644 --- a/lib/index.js +++ b/lib/index.js @@ -114,7 +114,7 @@ async function getPolyfills(options_) { /* A feature would be removed in these scenarios: - - If it has been specified to be excluded from the bundle via the exlcudes option. + - If it has been specified to be excluded from the bundle via the excludes option. - If the feature is not meant to be in the bundle it does not target the browser. Targeting a browser happens if the feature has the always option applied or the browser is unsupported/unknown and the unknown option is set to polyfill @@ -179,7 +179,7 @@ async function getPolyfills(options_) { if (!meta) { // this is a bit strange but the best thing I could come up with. // by adding the feature, it will show up as an "unrecognized" polyfill - // which I think is better than just pretending it doesn't exsist. + // which I think is better than just pretending it doesn't exist. addFeature(featureName); continue; } diff --git a/polyfills/AbortController/tests.js b/polyfills/AbortController/polyfill.test.js similarity index 100% rename from polyfills/AbortController/tests.js rename to polyfills/AbortController/polyfill.test.js diff --git a/polyfills/AggregateError/tests.js b/polyfills/AggregateError/polyfill.test.js similarity index 100% rename from polyfills/AggregateError/tests.js rename to polyfills/AggregateError/polyfill.test.js diff --git a/polyfills/Array/from/tests.js b/polyfills/Array/from/polyfill.test.js similarity index 100% rename from polyfills/Array/from/tests.js rename to polyfills/Array/from/polyfill.test.js diff --git a/polyfills/Array/of/tests.js b/polyfills/Array/of/polyfill.test.js similarity index 100% rename from polyfills/Array/of/tests.js rename to polyfills/Array/of/polyfill.test.js diff --git a/polyfills/Array/prototype/@@iterator/tests.js b/polyfills/Array/prototype/@@iterator/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/@@iterator/tests.js rename to polyfills/Array/prototype/@@iterator/polyfill.test.js diff --git a/polyfills/Array/prototype/at/tests.js b/polyfills/Array/prototype/at/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/at/tests.js rename to polyfills/Array/prototype/at/polyfill.test.js diff --git a/polyfills/Array/prototype/copyWithin/tests.js b/polyfills/Array/prototype/copyWithin/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/copyWithin/tests.js rename to polyfills/Array/prototype/copyWithin/polyfill.test.js diff --git a/polyfills/Array/prototype/entries/tests.js b/polyfills/Array/prototype/entries/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/entries/tests.js rename to polyfills/Array/prototype/entries/polyfill.test.js diff --git a/polyfills/Array/prototype/fill/tests.js b/polyfills/Array/prototype/fill/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/fill/tests.js rename to polyfills/Array/prototype/fill/polyfill.test.js diff --git a/polyfills/Array/prototype/find/tests.js b/polyfills/Array/prototype/find/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/find/tests.js rename to polyfills/Array/prototype/find/polyfill.test.js diff --git a/polyfills/Array/prototype/findIndex/tests.js b/polyfills/Array/prototype/findIndex/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/findIndex/tests.js rename to polyfills/Array/prototype/findIndex/polyfill.test.js diff --git a/polyfills/Array/prototype/findLast/tests.js b/polyfills/Array/prototype/findLast/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/findLast/tests.js rename to polyfills/Array/prototype/findLast/polyfill.test.js diff --git a/polyfills/Array/prototype/findLastIndex/tests.js b/polyfills/Array/prototype/findLastIndex/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/findLastIndex/tests.js rename to polyfills/Array/prototype/findLastIndex/polyfill.test.js diff --git a/polyfills/Array/prototype/flat/tests.js b/polyfills/Array/prototype/flat/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/flat/tests.js rename to polyfills/Array/prototype/flat/polyfill.test.js diff --git a/polyfills/Array/prototype/flatMap/tests.js b/polyfills/Array/prototype/flatMap/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/flatMap/tests.js rename to polyfills/Array/prototype/flatMap/polyfill.test.js diff --git a/polyfills/Array/prototype/includes/tests.js b/polyfills/Array/prototype/includes/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/includes/tests.js rename to polyfills/Array/prototype/includes/polyfill.test.js diff --git a/polyfills/Array/prototype/keys/tests.js b/polyfills/Array/prototype/keys/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/keys/tests.js rename to polyfills/Array/prototype/keys/polyfill.test.js diff --git a/polyfills/Array/prototype/sort/tests.js b/polyfills/Array/prototype/sort/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/sort/tests.js rename to polyfills/Array/prototype/sort/polyfill.test.js diff --git a/polyfills/Array/prototype/toReversed/tests.js b/polyfills/Array/prototype/toReversed/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/toReversed/tests.js rename to polyfills/Array/prototype/toReversed/polyfill.test.js diff --git a/polyfills/Array/prototype/toSorted/tests.js b/polyfills/Array/prototype/toSorted/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/toSorted/tests.js rename to polyfills/Array/prototype/toSorted/polyfill.test.js diff --git a/polyfills/Array/prototype/toSpliced/tests.js b/polyfills/Array/prototype/toSpliced/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/toSpliced/tests.js rename to polyfills/Array/prototype/toSpliced/polyfill.test.js diff --git a/polyfills/Array/prototype/values/tests.js b/polyfills/Array/prototype/values/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/values/tests.js rename to polyfills/Array/prototype/values/polyfill.test.js diff --git a/polyfills/Array/prototype/with/tests.js b/polyfills/Array/prototype/with/polyfill.test.js similarity index 100% rename from polyfills/Array/prototype/with/tests.js rename to polyfills/Array/prototype/with/polyfill.test.js diff --git a/polyfills/ArrayBuffer/isView/tests.js b/polyfills/ArrayBuffer/isView/polyfill.test.js similarity index 100% rename from polyfills/ArrayBuffer/isView/tests.js rename to polyfills/ArrayBuffer/isView/polyfill.test.js diff --git a/polyfills/ArrayBuffer/tests.js b/polyfills/ArrayBuffer/polyfill.test.js similarity index 100% rename from polyfills/ArrayBuffer/tests.js rename to polyfills/ArrayBuffer/polyfill.test.js diff --git a/polyfills/ArrayBuffer/prototype/@@toStringTag/tests.js b/polyfills/ArrayBuffer/prototype/@@toStringTag/polyfill.test.js similarity index 100% rename from polyfills/ArrayBuffer/prototype/@@toStringTag/tests.js rename to polyfills/ArrayBuffer/prototype/@@toStringTag/polyfill.test.js diff --git a/polyfills/Blob/tests.js b/polyfills/Blob/polyfill.test.js similarity index 100% rename from polyfills/Blob/tests.js rename to polyfills/Blob/polyfill.test.js diff --git a/polyfills/CSS/supports/tests.js b/polyfills/CSS/supports/polyfill.test.js similarity index 100% rename from polyfills/CSS/supports/tests.js rename to polyfills/CSS/supports/polyfill.test.js diff --git a/polyfills/CustomEvent/tests.js b/polyfills/CustomEvent/polyfill.test.js similarity index 100% rename from polyfills/CustomEvent/tests.js rename to polyfills/CustomEvent/polyfill.test.js diff --git a/polyfills/DOMRect/fromRect/tests.js b/polyfills/DOMRect/fromRect/polyfill.test.js similarity index 100% rename from polyfills/DOMRect/fromRect/tests.js rename to polyfills/DOMRect/fromRect/polyfill.test.js diff --git a/polyfills/DOMRect/tests.js b/polyfills/DOMRect/polyfill.test.js similarity index 100% rename from polyfills/DOMRect/tests.js rename to polyfills/DOMRect/polyfill.test.js diff --git a/polyfills/DOMTokenList/prototype/@@iterator/tests.js b/polyfills/DOMTokenList/prototype/@@iterator/polyfill.test.js similarity index 100% rename from polyfills/DOMTokenList/prototype/@@iterator/tests.js rename to polyfills/DOMTokenList/prototype/@@iterator/polyfill.test.js diff --git a/polyfills/DOMTokenList/prototype/forEach/tests.js b/polyfills/DOMTokenList/prototype/forEach/polyfill.test.js similarity index 100% rename from polyfills/DOMTokenList/prototype/forEach/tests.js rename to polyfills/DOMTokenList/prototype/forEach/polyfill.test.js diff --git a/polyfills/DOMTokenList/prototype/replace/tests.js b/polyfills/DOMTokenList/prototype/replace/polyfill.test.js similarity index 100% rename from polyfills/DOMTokenList/prototype/replace/tests.js rename to polyfills/DOMTokenList/prototype/replace/polyfill.test.js diff --git a/polyfills/DocumentFragment/tests.js b/polyfills/DocumentFragment/polyfill.test.js similarity index 100% rename from polyfills/DocumentFragment/tests.js rename to polyfills/DocumentFragment/polyfill.test.js diff --git a/polyfills/DocumentFragment/prototype/append/tests.js b/polyfills/DocumentFragment/prototype/append/polyfill.test.js similarity index 100% rename from polyfills/DocumentFragment/prototype/append/tests.js rename to polyfills/DocumentFragment/prototype/append/polyfill.test.js diff --git a/polyfills/DocumentFragment/prototype/prepend/tests.js b/polyfills/DocumentFragment/prototype/prepend/polyfill.test.js similarity index 100% rename from polyfills/DocumentFragment/prototype/prepend/tests.js rename to polyfills/DocumentFragment/prototype/prepend/polyfill.test.js diff --git a/polyfills/DocumentFragment/prototype/replaceChildren/tests.js b/polyfills/DocumentFragment/prototype/replaceChildren/polyfill.test.js similarity index 100% rename from polyfills/DocumentFragment/prototype/replaceChildren/tests.js rename to polyfills/DocumentFragment/prototype/replaceChildren/polyfill.test.js diff --git a/polyfills/Element/prototype/after/tests.js b/polyfills/Element/prototype/after/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/after/tests.js rename to polyfills/Element/prototype/after/polyfill.test.js diff --git a/polyfills/Element/prototype/append/tests.js b/polyfills/Element/prototype/append/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/append/tests.js rename to polyfills/Element/prototype/append/polyfill.test.js diff --git a/polyfills/Element/prototype/before/tests.js b/polyfills/Element/prototype/before/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/before/tests.js rename to polyfills/Element/prototype/before/polyfill.test.js diff --git a/polyfills/Element/prototype/classList/tests.js b/polyfills/Element/prototype/classList/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/classList/tests.js rename to polyfills/Element/prototype/classList/polyfill.test.js diff --git a/polyfills/Element/prototype/closest/tests.js b/polyfills/Element/prototype/closest/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/closest/tests.js rename to polyfills/Element/prototype/closest/polyfill.test.js diff --git a/polyfills/Element/prototype/dataset/tests.js b/polyfills/Element/prototype/dataset/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/dataset/tests.js rename to polyfills/Element/prototype/dataset/polyfill.test.js diff --git a/polyfills/Element/prototype/getAttributeNames/tests.js b/polyfills/Element/prototype/getAttributeNames/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/getAttributeNames/tests.js rename to polyfills/Element/prototype/getAttributeNames/polyfill.test.js diff --git a/polyfills/Element/prototype/matches/tests.js b/polyfills/Element/prototype/matches/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/matches/tests.js rename to polyfills/Element/prototype/matches/polyfill.test.js diff --git a/polyfills/Element/prototype/prepend/tests.js b/polyfills/Element/prototype/prepend/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/prepend/tests.js rename to polyfills/Element/prototype/prepend/polyfill.test.js diff --git a/polyfills/Element/prototype/remove/tests.js b/polyfills/Element/prototype/remove/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/remove/tests.js rename to polyfills/Element/prototype/remove/polyfill.test.js diff --git a/polyfills/Element/prototype/replaceChildren/tests.js b/polyfills/Element/prototype/replaceChildren/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/replaceChildren/tests.js rename to polyfills/Element/prototype/replaceChildren/polyfill.test.js diff --git a/polyfills/Element/prototype/replaceWith/tests.js b/polyfills/Element/prototype/replaceWith/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/replaceWith/tests.js rename to polyfills/Element/prototype/replaceWith/polyfill.test.js diff --git a/polyfills/Element/prototype/toggleAttribute/tests.js b/polyfills/Element/prototype/toggleAttribute/polyfill.test.js similarity index 100% rename from polyfills/Element/prototype/toggleAttribute/tests.js rename to polyfills/Element/prototype/toggleAttribute/polyfill.test.js diff --git a/polyfills/Error/cause/tests.js b/polyfills/Error/cause/polyfill.test.js similarity index 100% rename from polyfills/Error/cause/tests.js rename to polyfills/Error/cause/polyfill.test.js diff --git a/polyfills/Event/focusin/tests.js b/polyfills/Event/focusin/polyfill.test.js similarity index 100% rename from polyfills/Event/focusin/tests.js rename to polyfills/Event/focusin/polyfill.test.js diff --git a/polyfills/Event/hashchange/tests.js b/polyfills/Event/hashchange/polyfill.test.js similarity index 100% rename from polyfills/Event/hashchange/tests.js rename to polyfills/Event/hashchange/polyfill.test.js diff --git a/polyfills/Event/tests.js b/polyfills/Event/polyfill.test.js similarity index 100% rename from polyfills/Event/tests.js rename to polyfills/Event/polyfill.test.js diff --git a/polyfills/Event/scrollend/tests.js b/polyfills/Event/scrollend/polyfill.test.js similarity index 100% rename from polyfills/Event/scrollend/tests.js rename to polyfills/Event/scrollend/polyfill.test.js diff --git a/polyfills/Function/prototype/name/tests.js b/polyfills/Function/prototype/name/polyfill.test.js similarity index 100% rename from polyfills/Function/prototype/name/tests.js rename to polyfills/Function/prototype/name/polyfill.test.js diff --git a/polyfills/HTMLCanvasElement/prototype/toBlob/tests.js b/polyfills/HTMLCanvasElement/prototype/toBlob/polyfill.test.js similarity index 100% rename from polyfills/HTMLCanvasElement/prototype/toBlob/tests.js rename to polyfills/HTMLCanvasElement/prototype/toBlob/polyfill.test.js diff --git a/polyfills/HTMLCollection/prototype/@@iterator/tests.js b/polyfills/HTMLCollection/prototype/@@iterator/polyfill.test.js similarity index 100% rename from polyfills/HTMLCollection/prototype/@@iterator/tests.js rename to polyfills/HTMLCollection/prototype/@@iterator/polyfill.test.js diff --git a/polyfills/HTMLElement/prototype/inert/tests.js b/polyfills/HTMLElement/prototype/inert/polyfill.test.js similarity index 100% rename from polyfills/HTMLElement/prototype/inert/tests.js rename to polyfills/HTMLElement/prototype/inert/polyfill.test.js diff --git a/polyfills/HTMLFormElement/prototype/requestSubmit/tests.js b/polyfills/HTMLFormElement/prototype/requestSubmit/polyfill.test.js similarity index 100% rename from polyfills/HTMLFormElement/prototype/requestSubmit/tests.js rename to polyfills/HTMLFormElement/prototype/requestSubmit/polyfill.test.js diff --git a/polyfills/HTMLInputElement/prototype/valueAsDate/generated_tests.js b/polyfills/HTMLInputElement/prototype/valueAsDate/generated.test.js similarity index 99% rename from polyfills/HTMLInputElement/prototype/valueAsDate/generated_tests.js rename to polyfills/HTMLInputElement/prototype/valueAsDate/generated.test.js index 471d497e1..aefadf34b 100644 --- a/polyfills/HTMLInputElement/prototype/valueAsDate/generated_tests.js +++ b/polyfills/HTMLInputElement/prototype/valueAsDate/generated.test.js @@ -4,7 +4,7 @@ * Still keeping them here in case date/time issues arise. * Currently only has a set of dates for type="week", but more sets can be created. * - * To run change the filename to `tests.js`. + * To run change the filename to `polyfill.test.js`. */ /* globals JSON */ diff --git a/polyfills/HTMLInputElement/prototype/valueAsDate/tests.js b/polyfills/HTMLInputElement/prototype/valueAsDate/polyfill.test.js similarity index 100% rename from polyfills/HTMLInputElement/prototype/valueAsDate/tests.js rename to polyfills/HTMLInputElement/prototype/valueAsDate/polyfill.test.js diff --git a/polyfills/HTMLSelectElement/prototype/selectedOptions/tests.js b/polyfills/HTMLSelectElement/prototype/selectedOptions/polyfill.test.js similarity index 100% rename from polyfills/HTMLSelectElement/prototype/selectedOptions/tests.js rename to polyfills/HTMLSelectElement/prototype/selectedOptions/polyfill.test.js diff --git a/polyfills/HTMLTemplateElement/tests.js b/polyfills/HTMLTemplateElement/polyfill.test.js similarity index 100% rename from polyfills/HTMLTemplateElement/tests.js rename to polyfills/HTMLTemplateElement/polyfill.test.js diff --git a/polyfills/IntersectionObserver/tests.js b/polyfills/IntersectionObserver/polyfill.test.js similarity index 100% rename from polyfills/IntersectionObserver/tests.js rename to polyfills/IntersectionObserver/polyfill.test.js diff --git a/polyfills/IntersectionObserverEntry/tests.js b/polyfills/IntersectionObserverEntry/polyfill.test.js similarity index 100% rename from polyfills/IntersectionObserverEntry/tests.js rename to polyfills/IntersectionObserverEntry/polyfill.test.js diff --git a/polyfills/Intl/DateTimeFormat/tests.js b/polyfills/Intl/DateTimeFormat/polyfill.test.js similarity index 100% rename from polyfills/Intl/DateTimeFormat/tests.js rename to polyfills/Intl/DateTimeFormat/polyfill.test.js diff --git a/polyfills/Intl/DateTimeFormat/~timeZone/all/tests.js b/polyfills/Intl/DateTimeFormat/~timeZone/all/polyfill.test.js similarity index 100% rename from polyfills/Intl/DateTimeFormat/~timeZone/all/tests.js rename to polyfills/Intl/DateTimeFormat/~timeZone/all/polyfill.test.js diff --git a/polyfills/Intl/DateTimeFormat/~timeZone/golden/tests.js b/polyfills/Intl/DateTimeFormat/~timeZone/golden/polyfill.test.js similarity index 100% rename from polyfills/Intl/DateTimeFormat/~timeZone/golden/tests.js rename to polyfills/Intl/DateTimeFormat/~timeZone/golden/polyfill.test.js diff --git a/polyfills/Intl/DisplayNames/tests.js b/polyfills/Intl/DisplayNames/polyfill.test.js similarity index 100% rename from polyfills/Intl/DisplayNames/tests.js rename to polyfills/Intl/DisplayNames/polyfill.test.js diff --git a/polyfills/Intl/ListFormat/tests.js b/polyfills/Intl/ListFormat/polyfill.test.js similarity index 100% rename from polyfills/Intl/ListFormat/tests.js rename to polyfills/Intl/ListFormat/polyfill.test.js diff --git a/polyfills/Intl/Locale/tests.js b/polyfills/Intl/Locale/polyfill.test.js similarity index 100% rename from polyfills/Intl/Locale/tests.js rename to polyfills/Intl/Locale/polyfill.test.js diff --git a/polyfills/Intl/NumberFormat/tests.js b/polyfills/Intl/NumberFormat/polyfill.test.js similarity index 100% rename from polyfills/Intl/NumberFormat/tests.js rename to polyfills/Intl/NumberFormat/polyfill.test.js diff --git a/polyfills/Intl/PluralRules/tests.js b/polyfills/Intl/PluralRules/polyfill.test.js similarity index 100% rename from polyfills/Intl/PluralRules/tests.js rename to polyfills/Intl/PluralRules/polyfill.test.js diff --git a/polyfills/Intl/RelativeTimeFormat/tests.js b/polyfills/Intl/RelativeTimeFormat/polyfill.test.js similarity index 100% rename from polyfills/Intl/RelativeTimeFormat/tests.js rename to polyfills/Intl/RelativeTimeFormat/polyfill.test.js diff --git a/polyfills/Intl/getCanonicalLocales/tests.js b/polyfills/Intl/getCanonicalLocales/polyfill.test.js similarity index 100% rename from polyfills/Intl/getCanonicalLocales/tests.js rename to polyfills/Intl/getCanonicalLocales/polyfill.test.js diff --git a/polyfills/Map/groupBy/tests.js b/polyfills/Map/groupBy/polyfill.test.js similarity index 100% rename from polyfills/Map/groupBy/tests.js rename to polyfills/Map/groupBy/polyfill.test.js diff --git a/polyfills/Map/tests.js b/polyfills/Map/polyfill.test.js similarity index 100% rename from polyfills/Map/tests.js rename to polyfills/Map/polyfill.test.js diff --git a/polyfills/Math/acosh/tests.js b/polyfills/Math/acosh/polyfill.test.js similarity index 100% rename from polyfills/Math/acosh/tests.js rename to polyfills/Math/acosh/polyfill.test.js diff --git a/polyfills/Math/asinh/tests.js b/polyfills/Math/asinh/polyfill.test.js similarity index 100% rename from polyfills/Math/asinh/tests.js rename to polyfills/Math/asinh/polyfill.test.js diff --git a/polyfills/Math/atanh/tests.js b/polyfills/Math/atanh/polyfill.test.js similarity index 100% rename from polyfills/Math/atanh/tests.js rename to polyfills/Math/atanh/polyfill.test.js diff --git a/polyfills/Math/cbrt/tests.js b/polyfills/Math/cbrt/polyfill.test.js similarity index 100% rename from polyfills/Math/cbrt/tests.js rename to polyfills/Math/cbrt/polyfill.test.js diff --git a/polyfills/Math/clz32/tests.js b/polyfills/Math/clz32/polyfill.test.js similarity index 100% rename from polyfills/Math/clz32/tests.js rename to polyfills/Math/clz32/polyfill.test.js diff --git a/polyfills/Math/cosh/tests.js b/polyfills/Math/cosh/polyfill.test.js similarity index 100% rename from polyfills/Math/cosh/tests.js rename to polyfills/Math/cosh/polyfill.test.js diff --git a/polyfills/Math/expm1/tests.js b/polyfills/Math/expm1/polyfill.test.js similarity index 100% rename from polyfills/Math/expm1/tests.js rename to polyfills/Math/expm1/polyfill.test.js diff --git a/polyfills/Math/hypot/tests.js b/polyfills/Math/hypot/polyfill.test.js similarity index 100% rename from polyfills/Math/hypot/tests.js rename to polyfills/Math/hypot/polyfill.test.js diff --git a/polyfills/Math/imul/tests.js b/polyfills/Math/imul/polyfill.test.js similarity index 100% rename from polyfills/Math/imul/tests.js rename to polyfills/Math/imul/polyfill.test.js diff --git a/polyfills/Math/log10/tests.js b/polyfills/Math/log10/polyfill.test.js similarity index 100% rename from polyfills/Math/log10/tests.js rename to polyfills/Math/log10/polyfill.test.js diff --git a/polyfills/Math/log1p/tests.js b/polyfills/Math/log1p/polyfill.test.js similarity index 100% rename from polyfills/Math/log1p/tests.js rename to polyfills/Math/log1p/polyfill.test.js diff --git a/polyfills/Math/log2/tests.js b/polyfills/Math/log2/polyfill.test.js similarity index 100% rename from polyfills/Math/log2/tests.js rename to polyfills/Math/log2/polyfill.test.js diff --git a/polyfills/Math/sign/tests.js b/polyfills/Math/sign/polyfill.test.js similarity index 100% rename from polyfills/Math/sign/tests.js rename to polyfills/Math/sign/polyfill.test.js diff --git a/polyfills/Math/sinh/tests.js b/polyfills/Math/sinh/polyfill.test.js similarity index 100% rename from polyfills/Math/sinh/tests.js rename to polyfills/Math/sinh/polyfill.test.js diff --git a/polyfills/Math/tanh/tests.js b/polyfills/Math/tanh/polyfill.test.js similarity index 100% rename from polyfills/Math/tanh/tests.js rename to polyfills/Math/tanh/polyfill.test.js diff --git a/polyfills/Math/trunc/tests.js b/polyfills/Math/trunc/polyfill.test.js similarity index 100% rename from polyfills/Math/trunc/tests.js rename to polyfills/Math/trunc/polyfill.test.js diff --git a/polyfills/MediaQueryList/prototype/addEventListener/tests.js b/polyfills/MediaQueryList/prototype/addEventListener/polyfill.test.js similarity index 100% rename from polyfills/MediaQueryList/prototype/addEventListener/tests.js rename to polyfills/MediaQueryList/prototype/addEventListener/polyfill.test.js diff --git a/polyfills/Node/prototype/contains/tests.js b/polyfills/Node/prototype/contains/polyfill.test.js similarity index 100% rename from polyfills/Node/prototype/contains/tests.js rename to polyfills/Node/prototype/contains/polyfill.test.js diff --git a/polyfills/Node/prototype/getRootNode/tests.js b/polyfills/Node/prototype/getRootNode/polyfill.test.js similarity index 100% rename from polyfills/Node/prototype/getRootNode/tests.js rename to polyfills/Node/prototype/getRootNode/polyfill.test.js diff --git a/polyfills/Node/prototype/isConnected/tests.js b/polyfills/Node/prototype/isConnected/polyfill.test.js similarity index 100% rename from polyfills/Node/prototype/isConnected/tests.js rename to polyfills/Node/prototype/isConnected/polyfill.test.js diff --git a/polyfills/Node/prototype/isSameNode/tests.js b/polyfills/Node/prototype/isSameNode/polyfill.test.js similarity index 100% rename from polyfills/Node/prototype/isSameNode/tests.js rename to polyfills/Node/prototype/isSameNode/polyfill.test.js diff --git a/polyfills/NodeList/prototype/@@iterator/tests.js b/polyfills/NodeList/prototype/@@iterator/polyfill.test.js similarity index 100% rename from polyfills/NodeList/prototype/@@iterator/tests.js rename to polyfills/NodeList/prototype/@@iterator/polyfill.test.js diff --git a/polyfills/NodeList/prototype/forEach/tests.js b/polyfills/NodeList/prototype/forEach/polyfill.test.js similarity index 100% rename from polyfills/NodeList/prototype/forEach/tests.js rename to polyfills/NodeList/prototype/forEach/polyfill.test.js diff --git a/polyfills/Number/Epsilon/tests.js b/polyfills/Number/Epsilon/polyfill.test.js similarity index 100% rename from polyfills/Number/Epsilon/tests.js rename to polyfills/Number/Epsilon/polyfill.test.js diff --git a/polyfills/Number/MAX_SAFE_INTEGER/tests.js b/polyfills/Number/MAX_SAFE_INTEGER/polyfill.test.js similarity index 100% rename from polyfills/Number/MAX_SAFE_INTEGER/tests.js rename to polyfills/Number/MAX_SAFE_INTEGER/polyfill.test.js diff --git a/polyfills/Number/MIN_SAFE_INTEGER/tests.js b/polyfills/Number/MIN_SAFE_INTEGER/polyfill.test.js similarity index 100% rename from polyfills/Number/MIN_SAFE_INTEGER/tests.js rename to polyfills/Number/MIN_SAFE_INTEGER/polyfill.test.js diff --git a/polyfills/Number/isFinite/tests.js b/polyfills/Number/isFinite/polyfill.test.js similarity index 100% rename from polyfills/Number/isFinite/tests.js rename to polyfills/Number/isFinite/polyfill.test.js diff --git a/polyfills/Number/isInteger/tests.js b/polyfills/Number/isInteger/polyfill.test.js similarity index 100% rename from polyfills/Number/isInteger/tests.js rename to polyfills/Number/isInteger/polyfill.test.js diff --git a/polyfills/Number/isNaN/tests.js b/polyfills/Number/isNaN/polyfill.test.js similarity index 100% rename from polyfills/Number/isNaN/tests.js rename to polyfills/Number/isNaN/polyfill.test.js diff --git a/polyfills/Number/isSafeInteger/tests.js b/polyfills/Number/isSafeInteger/polyfill.test.js similarity index 100% rename from polyfills/Number/isSafeInteger/tests.js rename to polyfills/Number/isSafeInteger/polyfill.test.js diff --git a/polyfills/Number/parseFloat/tests.js b/polyfills/Number/parseFloat/polyfill.test.js similarity index 100% rename from polyfills/Number/parseFloat/tests.js rename to polyfills/Number/parseFloat/polyfill.test.js diff --git a/polyfills/Number/parseInt/tests.js b/polyfills/Number/parseInt/polyfill.test.js similarity index 100% rename from polyfills/Number/parseInt/tests.js rename to polyfills/Number/parseInt/polyfill.test.js diff --git a/polyfills/Object/assign/tests.js b/polyfills/Object/assign/polyfill.test.js similarity index 100% rename from polyfills/Object/assign/tests.js rename to polyfills/Object/assign/polyfill.test.js diff --git a/polyfills/Object/entries/tests.js b/polyfills/Object/entries/polyfill.test.js similarity index 100% rename from polyfills/Object/entries/tests.js rename to polyfills/Object/entries/polyfill.test.js diff --git a/polyfills/Object/freeze/tests.js b/polyfills/Object/freeze/polyfill.test.js similarity index 100% rename from polyfills/Object/freeze/tests.js rename to polyfills/Object/freeze/polyfill.test.js diff --git a/polyfills/Object/fromEntries/tests.js b/polyfills/Object/fromEntries/polyfill.test.js similarity index 100% rename from polyfills/Object/fromEntries/tests.js rename to polyfills/Object/fromEntries/polyfill.test.js diff --git a/polyfills/Object/getOwnPropertyDescriptor/tests.js b/polyfills/Object/getOwnPropertyDescriptor/polyfill.test.js similarity index 100% rename from polyfills/Object/getOwnPropertyDescriptor/tests.js rename to polyfills/Object/getOwnPropertyDescriptor/polyfill.test.js diff --git a/polyfills/Object/getOwnPropertyDescriptors/tests.js b/polyfills/Object/getOwnPropertyDescriptors/polyfill.test.js similarity index 100% rename from polyfills/Object/getOwnPropertyDescriptors/tests.js rename to polyfills/Object/getOwnPropertyDescriptors/polyfill.test.js diff --git a/polyfills/Object/getOwnPropertyNames/tests.js b/polyfills/Object/getOwnPropertyNames/polyfill.test.js similarity index 100% rename from polyfills/Object/getOwnPropertyNames/tests.js rename to polyfills/Object/getOwnPropertyNames/polyfill.test.js diff --git a/polyfills/Object/groupBy/tests.js b/polyfills/Object/groupBy/polyfill.test.js similarity index 100% rename from polyfills/Object/groupBy/tests.js rename to polyfills/Object/groupBy/polyfill.test.js diff --git a/polyfills/Object/hasOwn/tests.js b/polyfills/Object/hasOwn/polyfill.test.js similarity index 100% rename from polyfills/Object/hasOwn/tests.js rename to polyfills/Object/hasOwn/polyfill.test.js diff --git a/polyfills/Object/is/tests.js b/polyfills/Object/is/polyfill.test.js similarity index 100% rename from polyfills/Object/is/tests.js rename to polyfills/Object/is/polyfill.test.js diff --git a/polyfills/Object/isExtensible/tests.js b/polyfills/Object/isExtensible/polyfill.test.js similarity index 100% rename from polyfills/Object/isExtensible/tests.js rename to polyfills/Object/isExtensible/polyfill.test.js diff --git a/polyfills/Object/isFrozen/tests.js b/polyfills/Object/isFrozen/polyfill.test.js similarity index 100% rename from polyfills/Object/isFrozen/tests.js rename to polyfills/Object/isFrozen/polyfill.test.js diff --git a/polyfills/Object/isSealed/tests.js b/polyfills/Object/isSealed/polyfill.test.js similarity index 100% rename from polyfills/Object/isSealed/tests.js rename to polyfills/Object/isSealed/polyfill.test.js diff --git a/polyfills/Object/keys/tests.js b/polyfills/Object/keys/polyfill.test.js similarity index 100% rename from polyfills/Object/keys/tests.js rename to polyfills/Object/keys/polyfill.test.js diff --git a/polyfills/Object/preventExtensions/tests.js b/polyfills/Object/preventExtensions/polyfill.test.js similarity index 100% rename from polyfills/Object/preventExtensions/tests.js rename to polyfills/Object/preventExtensions/polyfill.test.js diff --git a/polyfills/Object/prototype/toString/tests.js b/polyfills/Object/prototype/toString/polyfill.test.js similarity index 100% rename from polyfills/Object/prototype/toString/tests.js rename to polyfills/Object/prototype/toString/polyfill.test.js diff --git a/polyfills/Object/seal/tests.js b/polyfills/Object/seal/polyfill.test.js similarity index 100% rename from polyfills/Object/seal/tests.js rename to polyfills/Object/seal/polyfill.test.js diff --git a/polyfills/Object/setPrototypeOf/tests.js b/polyfills/Object/setPrototypeOf/polyfill.test.js similarity index 100% rename from polyfills/Object/setPrototypeOf/tests.js rename to polyfills/Object/setPrototypeOf/polyfill.test.js diff --git a/polyfills/Object/values/tests.js b/polyfills/Object/values/polyfill.test.js similarity index 100% rename from polyfills/Object/values/tests.js rename to polyfills/Object/values/polyfill.test.js diff --git a/polyfills/Promise/allSettled/tests.js b/polyfills/Promise/allSettled/polyfill.test.js similarity index 100% rename from polyfills/Promise/allSettled/tests.js rename to polyfills/Promise/allSettled/polyfill.test.js diff --git a/polyfills/Promise/any/tests.js b/polyfills/Promise/any/polyfill.test.js similarity index 100% rename from polyfills/Promise/any/tests.js rename to polyfills/Promise/any/polyfill.test.js diff --git a/polyfills/Promise/tests.js b/polyfills/Promise/polyfill.test.js similarity index 100% rename from polyfills/Promise/tests.js rename to polyfills/Promise/polyfill.test.js diff --git a/polyfills/Promise/prototype/finally/tests.js b/polyfills/Promise/prototype/finally/polyfill.test.js similarity index 100% rename from polyfills/Promise/prototype/finally/tests.js rename to polyfills/Promise/prototype/finally/polyfill.test.js diff --git a/polyfills/Promise/withResolvers/tests.js b/polyfills/Promise/withResolvers/polyfill.test.js similarity index 100% rename from polyfills/Promise/withResolvers/tests.js rename to polyfills/Promise/withResolvers/polyfill.test.js diff --git a/polyfills/Reflect/apply/tests.js b/polyfills/Reflect/apply/polyfill.test.js similarity index 100% rename from polyfills/Reflect/apply/tests.js rename to polyfills/Reflect/apply/polyfill.test.js diff --git a/polyfills/Reflect/construct/tests.js b/polyfills/Reflect/construct/polyfill.test.js similarity index 100% rename from polyfills/Reflect/construct/tests.js rename to polyfills/Reflect/construct/polyfill.test.js diff --git a/polyfills/Reflect/defineProperty/tests.js b/polyfills/Reflect/defineProperty/polyfill.test.js similarity index 100% rename from polyfills/Reflect/defineProperty/tests.js rename to polyfills/Reflect/defineProperty/polyfill.test.js diff --git a/polyfills/Reflect/deleteProperty/tests.js b/polyfills/Reflect/deleteProperty/polyfill.test.js similarity index 100% rename from polyfills/Reflect/deleteProperty/tests.js rename to polyfills/Reflect/deleteProperty/polyfill.test.js diff --git a/polyfills/Reflect/get/tests.js b/polyfills/Reflect/get/polyfill.test.js similarity index 100% rename from polyfills/Reflect/get/tests.js rename to polyfills/Reflect/get/polyfill.test.js diff --git a/polyfills/Reflect/getOwnPropertyDescriptor/tests.js b/polyfills/Reflect/getOwnPropertyDescriptor/polyfill.test.js similarity index 100% rename from polyfills/Reflect/getOwnPropertyDescriptor/tests.js rename to polyfills/Reflect/getOwnPropertyDescriptor/polyfill.test.js diff --git a/polyfills/Reflect/getPrototypeOf/tests.js b/polyfills/Reflect/getPrototypeOf/polyfill.test.js similarity index 100% rename from polyfills/Reflect/getPrototypeOf/tests.js rename to polyfills/Reflect/getPrototypeOf/polyfill.test.js diff --git a/polyfills/Reflect/has/tests.js b/polyfills/Reflect/has/polyfill.test.js similarity index 100% rename from polyfills/Reflect/has/tests.js rename to polyfills/Reflect/has/polyfill.test.js diff --git a/polyfills/Reflect/isExtensible/tests.js b/polyfills/Reflect/isExtensible/polyfill.test.js similarity index 100% rename from polyfills/Reflect/isExtensible/tests.js rename to polyfills/Reflect/isExtensible/polyfill.test.js diff --git a/polyfills/Reflect/ownKeys/tests.js b/polyfills/Reflect/ownKeys/polyfill.test.js similarity index 100% rename from polyfills/Reflect/ownKeys/tests.js rename to polyfills/Reflect/ownKeys/polyfill.test.js diff --git a/polyfills/Reflect/tests.js b/polyfills/Reflect/polyfill.test.js similarity index 100% rename from polyfills/Reflect/tests.js rename to polyfills/Reflect/polyfill.test.js diff --git a/polyfills/Reflect/preventExtensions/tests.js b/polyfills/Reflect/preventExtensions/polyfill.test.js similarity index 100% rename from polyfills/Reflect/preventExtensions/tests.js rename to polyfills/Reflect/preventExtensions/polyfill.test.js diff --git a/polyfills/Reflect/set/tests.js b/polyfills/Reflect/set/polyfill.test.js similarity index 100% rename from polyfills/Reflect/set/tests.js rename to polyfills/Reflect/set/polyfill.test.js diff --git a/polyfills/Reflect/setPrototypeOf/tests.js b/polyfills/Reflect/setPrototypeOf/polyfill.test.js similarity index 100% rename from polyfills/Reflect/setPrototypeOf/tests.js rename to polyfills/Reflect/setPrototypeOf/polyfill.test.js diff --git a/polyfills/RegExp/prototype/@@matchAll/tests.js b/polyfills/RegExp/prototype/@@matchAll/polyfill.test.js similarity index 100% rename from polyfills/RegExp/prototype/@@matchAll/tests.js rename to polyfills/RegExp/prototype/@@matchAll/polyfill.test.js diff --git a/polyfills/RegExp/prototype/flags/tests.js b/polyfills/RegExp/prototype/flags/polyfill.test.js similarity index 100% rename from polyfills/RegExp/prototype/flags/tests.js rename to polyfills/RegExp/prototype/flags/polyfill.test.js diff --git a/polyfills/ResizeObserver/tests.js b/polyfills/ResizeObserver/polyfill.test.js similarity index 100% rename from polyfills/ResizeObserver/tests.js rename to polyfills/ResizeObserver/polyfill.test.js diff --git a/polyfills/Set/tests.js b/polyfills/Set/polyfill.test.js similarity index 100% rename from polyfills/Set/tests.js rename to polyfills/Set/polyfill.test.js diff --git a/polyfills/Set/prototype/difference/tests.js b/polyfills/Set/prototype/difference/polyfill.test.js similarity index 100% rename from polyfills/Set/prototype/difference/tests.js rename to polyfills/Set/prototype/difference/polyfill.test.js diff --git a/polyfills/Set/prototype/intersection/tests.js b/polyfills/Set/prototype/intersection/polyfill.test.js similarity index 100% rename from polyfills/Set/prototype/intersection/tests.js rename to polyfills/Set/prototype/intersection/polyfill.test.js diff --git a/polyfills/Set/prototype/isDisjointFrom/tests.js b/polyfills/Set/prototype/isDisjointFrom/polyfill.test.js similarity index 100% rename from polyfills/Set/prototype/isDisjointFrom/tests.js rename to polyfills/Set/prototype/isDisjointFrom/polyfill.test.js diff --git a/polyfills/Set/prototype/isSubsetOf/tests.js b/polyfills/Set/prototype/isSubsetOf/polyfill.test.js similarity index 100% rename from polyfills/Set/prototype/isSubsetOf/tests.js rename to polyfills/Set/prototype/isSubsetOf/polyfill.test.js diff --git a/polyfills/Set/prototype/isSupersetOf/tests.js b/polyfills/Set/prototype/isSupersetOf/polyfill.test.js similarity index 100% rename from polyfills/Set/prototype/isSupersetOf/tests.js rename to polyfills/Set/prototype/isSupersetOf/polyfill.test.js diff --git a/polyfills/Set/prototype/symmetricDifference/tests.js b/polyfills/Set/prototype/symmetricDifference/polyfill.test.js similarity index 100% rename from polyfills/Set/prototype/symmetricDifference/tests.js rename to polyfills/Set/prototype/symmetricDifference/polyfill.test.js diff --git a/polyfills/Set/prototype/union/tests.js b/polyfills/Set/prototype/union/polyfill.test.js similarity index 100% rename from polyfills/Set/prototype/union/tests.js rename to polyfills/Set/prototype/union/polyfill.test.js diff --git a/polyfills/String/fromCodePoint/tests.js b/polyfills/String/fromCodePoint/polyfill.test.js similarity index 100% rename from polyfills/String/fromCodePoint/tests.js rename to polyfills/String/fromCodePoint/polyfill.test.js diff --git a/polyfills/String/prototype/@@iterator/tests.js b/polyfills/String/prototype/@@iterator/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/@@iterator/tests.js rename to polyfills/String/prototype/@@iterator/polyfill.test.js diff --git a/polyfills/String/prototype/at/tests.js b/polyfills/String/prototype/at/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/at/tests.js rename to polyfills/String/prototype/at/polyfill.test.js diff --git a/polyfills/String/prototype/codePointAt/tests.js b/polyfills/String/prototype/codePointAt/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/codePointAt/tests.js rename to polyfills/String/prototype/codePointAt/polyfill.test.js diff --git a/polyfills/String/prototype/endsWith/tests.js b/polyfills/String/prototype/endsWith/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/endsWith/tests.js rename to polyfills/String/prototype/endsWith/polyfill.test.js diff --git a/polyfills/String/prototype/includes/tests.js b/polyfills/String/prototype/includes/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/includes/tests.js rename to polyfills/String/prototype/includes/polyfill.test.js diff --git a/polyfills/String/prototype/isWellFormed/tests.js b/polyfills/String/prototype/isWellFormed/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/isWellFormed/tests.js rename to polyfills/String/prototype/isWellFormed/polyfill.test.js diff --git a/polyfills/String/prototype/matchAll/tests.js b/polyfills/String/prototype/matchAll/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/matchAll/tests.js rename to polyfills/String/prototype/matchAll/polyfill.test.js diff --git a/polyfills/String/prototype/normalize/tests.js b/polyfills/String/prototype/normalize/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/normalize/tests.js rename to polyfills/String/prototype/normalize/polyfill.test.js diff --git a/polyfills/String/prototype/padEnd/tests.js b/polyfills/String/prototype/padEnd/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/padEnd/tests.js rename to polyfills/String/prototype/padEnd/polyfill.test.js diff --git a/polyfills/String/prototype/padStart/tests.js b/polyfills/String/prototype/padStart/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/padStart/tests.js rename to polyfills/String/prototype/padStart/polyfill.test.js diff --git a/polyfills/String/prototype/repeat/tests.js b/polyfills/String/prototype/repeat/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/repeat/tests.js rename to polyfills/String/prototype/repeat/polyfill.test.js diff --git a/polyfills/String/prototype/replaceAll/tests.js b/polyfills/String/prototype/replaceAll/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/replaceAll/tests.js rename to polyfills/String/prototype/replaceAll/polyfill.test.js diff --git a/polyfills/String/prototype/startsWith/tests.js b/polyfills/String/prototype/startsWith/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/startsWith/tests.js rename to polyfills/String/prototype/startsWith/polyfill.test.js diff --git a/polyfills/String/prototype/toWellFormed/tests.js b/polyfills/String/prototype/toWellFormed/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/toWellFormed/tests.js rename to polyfills/String/prototype/toWellFormed/polyfill.test.js diff --git a/polyfills/String/prototype/trim/tests.js b/polyfills/String/prototype/trim/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/trim/tests.js rename to polyfills/String/prototype/trim/polyfill.test.js diff --git a/polyfills/String/prototype/trimEnd/tests.js b/polyfills/String/prototype/trimEnd/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/trimEnd/tests.js rename to polyfills/String/prototype/trimEnd/polyfill.test.js diff --git a/polyfills/String/prototype/trimStart/tests.js b/polyfills/String/prototype/trimStart/polyfill.test.js similarity index 100% rename from polyfills/String/prototype/trimStart/tests.js rename to polyfills/String/prototype/trimStart/polyfill.test.js diff --git a/polyfills/String/raw/tests.js b/polyfills/String/raw/polyfill.test.js similarity index 100% rename from polyfills/String/raw/tests.js rename to polyfills/String/raw/polyfill.test.js diff --git a/polyfills/Symbol/asyncIterator/tests.js b/polyfills/Symbol/asyncIterator/polyfill.test.js similarity index 100% rename from polyfills/Symbol/asyncIterator/tests.js rename to polyfills/Symbol/asyncIterator/polyfill.test.js diff --git a/polyfills/Symbol/hasInstance/tests.js b/polyfills/Symbol/hasInstance/polyfill.test.js similarity index 100% rename from polyfills/Symbol/hasInstance/tests.js rename to polyfills/Symbol/hasInstance/polyfill.test.js diff --git a/polyfills/Symbol/isConcatSpreadable/tests.js b/polyfills/Symbol/isConcatSpreadable/polyfill.test.js similarity index 100% rename from polyfills/Symbol/isConcatSpreadable/tests.js rename to polyfills/Symbol/isConcatSpreadable/polyfill.test.js diff --git a/polyfills/Symbol/iterator/tests.js b/polyfills/Symbol/iterator/polyfill.test.js similarity index 100% rename from polyfills/Symbol/iterator/tests.js rename to polyfills/Symbol/iterator/polyfill.test.js diff --git a/polyfills/Symbol/match/tests.js b/polyfills/Symbol/match/polyfill.test.js similarity index 100% rename from polyfills/Symbol/match/tests.js rename to polyfills/Symbol/match/polyfill.test.js diff --git a/polyfills/Symbol/matchAll/tests.js b/polyfills/Symbol/matchAll/polyfill.test.js similarity index 100% rename from polyfills/Symbol/matchAll/tests.js rename to polyfills/Symbol/matchAll/polyfill.test.js diff --git a/polyfills/Symbol/tests.js b/polyfills/Symbol/polyfill.test.js similarity index 100% rename from polyfills/Symbol/tests.js rename to polyfills/Symbol/polyfill.test.js diff --git a/polyfills/Symbol/prototype/description/tests.js b/polyfills/Symbol/prototype/description/polyfill.test.js similarity index 100% rename from polyfills/Symbol/prototype/description/tests.js rename to polyfills/Symbol/prototype/description/polyfill.test.js diff --git a/polyfills/Symbol/replace/tests.js b/polyfills/Symbol/replace/polyfill.test.js similarity index 100% rename from polyfills/Symbol/replace/tests.js rename to polyfills/Symbol/replace/polyfill.test.js diff --git a/polyfills/Symbol/search/tests.js b/polyfills/Symbol/search/polyfill.test.js similarity index 100% rename from polyfills/Symbol/search/tests.js rename to polyfills/Symbol/search/polyfill.test.js diff --git a/polyfills/Symbol/species/tests.js b/polyfills/Symbol/species/polyfill.test.js similarity index 100% rename from polyfills/Symbol/species/tests.js rename to polyfills/Symbol/species/polyfill.test.js diff --git a/polyfills/Symbol/split/tests.js b/polyfills/Symbol/split/polyfill.test.js similarity index 100% rename from polyfills/Symbol/split/tests.js rename to polyfills/Symbol/split/polyfill.test.js diff --git a/polyfills/Symbol/toPrimitive/tests.js b/polyfills/Symbol/toPrimitive/polyfill.test.js similarity index 100% rename from polyfills/Symbol/toPrimitive/tests.js rename to polyfills/Symbol/toPrimitive/polyfill.test.js diff --git a/polyfills/Symbol/toStringTag/tests.js b/polyfills/Symbol/toStringTag/polyfill.test.js similarity index 100% rename from polyfills/Symbol/toStringTag/tests.js rename to polyfills/Symbol/toStringTag/polyfill.test.js diff --git a/polyfills/Symbol/unscopables/tests.js b/polyfills/Symbol/unscopables/polyfill.test.js similarity index 100% rename from polyfills/Symbol/unscopables/tests.js rename to polyfills/Symbol/unscopables/polyfill.test.js diff --git a/polyfills/TextEncoder/tests.js b/polyfills/TextEncoder/polyfill.test.js similarity index 100% rename from polyfills/TextEncoder/tests.js rename to polyfills/TextEncoder/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/@@iterator/tests.js b/polyfills/TypedArray/prototype/@@iterator/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/@@iterator/tests.js rename to polyfills/TypedArray/prototype/@@iterator/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/@@toStringTag/tests.js b/polyfills/TypedArray/prototype/@@toStringTag/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/@@toStringTag/tests.js rename to polyfills/TypedArray/prototype/@@toStringTag/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/at/tests.js b/polyfills/TypedArray/prototype/at/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/at/tests.js rename to polyfills/TypedArray/prototype/at/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/entries/tests.js b/polyfills/TypedArray/prototype/entries/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/entries/tests.js rename to polyfills/TypedArray/prototype/entries/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/findLast/tests.js b/polyfills/TypedArray/prototype/findLast/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/findLast/tests.js rename to polyfills/TypedArray/prototype/findLast/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/findLastIndex/tests.js b/polyfills/TypedArray/prototype/findLastIndex/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/findLastIndex/tests.js rename to polyfills/TypedArray/prototype/findLastIndex/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/keys/tests.js b/polyfills/TypedArray/prototype/keys/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/keys/tests.js rename to polyfills/TypedArray/prototype/keys/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/sort/tests.js b/polyfills/TypedArray/prototype/sort/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/sort/tests.js rename to polyfills/TypedArray/prototype/sort/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/toLocaleString/tests.js b/polyfills/TypedArray/prototype/toLocaleString/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/toLocaleString/tests.js rename to polyfills/TypedArray/prototype/toLocaleString/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/toReversed/tests.js b/polyfills/TypedArray/prototype/toReversed/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/toReversed/tests.js rename to polyfills/TypedArray/prototype/toReversed/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/toSorted/tests.js b/polyfills/TypedArray/prototype/toSorted/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/toSorted/tests.js rename to polyfills/TypedArray/prototype/toSorted/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/toString/tests.js b/polyfills/TypedArray/prototype/toString/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/toString/tests.js rename to polyfills/TypedArray/prototype/toString/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/values/tests.js b/polyfills/TypedArray/prototype/values/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/values/tests.js rename to polyfills/TypedArray/prototype/values/polyfill.test.js diff --git a/polyfills/TypedArray/prototype/with/tests.js b/polyfills/TypedArray/prototype/with/polyfill.test.js similarity index 100% rename from polyfills/TypedArray/prototype/with/tests.js rename to polyfills/TypedArray/prototype/with/polyfill.test.js diff --git a/polyfills/URL/tests.js b/polyfills/URL/polyfill.test.js similarity index 100% rename from polyfills/URL/tests.js rename to polyfills/URL/polyfill.test.js diff --git a/polyfills/URL/prototype/toJSON/tests.js b/polyfills/URL/prototype/toJSON/polyfill.test.js similarity index 100% rename from polyfills/URL/prototype/toJSON/tests.js rename to polyfills/URL/prototype/toJSON/polyfill.test.js diff --git a/polyfills/UserTiming/tests.js b/polyfills/UserTiming/polyfill.test.js similarity index 100% rename from polyfills/UserTiming/tests.js rename to polyfills/UserTiming/polyfill.test.js diff --git a/polyfills/WeakMap/tests.js b/polyfills/WeakMap/polyfill.test.js similarity index 100% rename from polyfills/WeakMap/tests.js rename to polyfills/WeakMap/polyfill.test.js diff --git a/polyfills/WeakSet/tests.js b/polyfills/WeakSet/polyfill.test.js similarity index 100% rename from polyfills/WeakSet/tests.js rename to polyfills/WeakSet/polyfill.test.js diff --git a/polyfills/atob/tests.js b/polyfills/atob/polyfill.test.js similarity index 100% rename from polyfills/atob/tests.js rename to polyfills/atob/polyfill.test.js diff --git a/polyfills/console/assert/tests.js b/polyfills/console/assert/polyfill.test.js similarity index 100% rename from polyfills/console/assert/tests.js rename to polyfills/console/assert/polyfill.test.js diff --git a/polyfills/console/clear/tests.js b/polyfills/console/clear/polyfill.test.js similarity index 100% rename from polyfills/console/clear/tests.js rename to polyfills/console/clear/polyfill.test.js diff --git a/polyfills/console/count/tests.js b/polyfills/console/count/polyfill.test.js similarity index 100% rename from polyfills/console/count/tests.js rename to polyfills/console/count/polyfill.test.js diff --git a/polyfills/console/debug/tests.js b/polyfills/console/debug/polyfill.test.js similarity index 100% rename from polyfills/console/debug/tests.js rename to polyfills/console/debug/polyfill.test.js diff --git a/polyfills/console/dir/tests.js b/polyfills/console/dir/polyfill.test.js similarity index 100% rename from polyfills/console/dir/tests.js rename to polyfills/console/dir/polyfill.test.js diff --git a/polyfills/console/dirxml/tests.js b/polyfills/console/dirxml/polyfill.test.js similarity index 100% rename from polyfills/console/dirxml/tests.js rename to polyfills/console/dirxml/polyfill.test.js diff --git a/polyfills/console/error/tests.js b/polyfills/console/error/polyfill.test.js similarity index 100% rename from polyfills/console/error/tests.js rename to polyfills/console/error/polyfill.test.js diff --git a/polyfills/console/exception/tests.js b/polyfills/console/exception/polyfill.test.js similarity index 100% rename from polyfills/console/exception/tests.js rename to polyfills/console/exception/polyfill.test.js diff --git a/polyfills/console/group/tests.js b/polyfills/console/group/polyfill.test.js similarity index 100% rename from polyfills/console/group/tests.js rename to polyfills/console/group/polyfill.test.js diff --git a/polyfills/console/groupCollapsed/tests.js b/polyfills/console/groupCollapsed/polyfill.test.js similarity index 100% rename from polyfills/console/groupCollapsed/tests.js rename to polyfills/console/groupCollapsed/polyfill.test.js diff --git a/polyfills/console/groupEnd/tests.js b/polyfills/console/groupEnd/polyfill.test.js similarity index 100% rename from polyfills/console/groupEnd/tests.js rename to polyfills/console/groupEnd/polyfill.test.js diff --git a/polyfills/console/info/tests.js b/polyfills/console/info/polyfill.test.js similarity index 100% rename from polyfills/console/info/tests.js rename to polyfills/console/info/polyfill.test.js diff --git a/polyfills/console/log/tests.js b/polyfills/console/log/polyfill.test.js similarity index 100% rename from polyfills/console/log/tests.js rename to polyfills/console/log/polyfill.test.js diff --git a/polyfills/console/markTimeline/tests.js b/polyfills/console/markTimeline/polyfill.test.js similarity index 100% rename from polyfills/console/markTimeline/tests.js rename to polyfills/console/markTimeline/polyfill.test.js diff --git a/polyfills/console/tests.js b/polyfills/console/polyfill.test.js similarity index 100% rename from polyfills/console/tests.js rename to polyfills/console/polyfill.test.js diff --git a/polyfills/console/profile/tests.js b/polyfills/console/profile/polyfill.test.js similarity index 100% rename from polyfills/console/profile/tests.js rename to polyfills/console/profile/polyfill.test.js diff --git a/polyfills/console/profileEnd/tests.js b/polyfills/console/profileEnd/polyfill.test.js similarity index 100% rename from polyfills/console/profileEnd/tests.js rename to polyfills/console/profileEnd/polyfill.test.js diff --git a/polyfills/console/profiles/tests.js b/polyfills/console/profiles/polyfill.test.js similarity index 100% rename from polyfills/console/profiles/tests.js rename to polyfills/console/profiles/polyfill.test.js diff --git a/polyfills/console/table/tests.js b/polyfills/console/table/polyfill.test.js similarity index 100% rename from polyfills/console/table/tests.js rename to polyfills/console/table/polyfill.test.js diff --git a/polyfills/console/time/tests.js b/polyfills/console/time/polyfill.test.js similarity index 100% rename from polyfills/console/time/tests.js rename to polyfills/console/time/polyfill.test.js diff --git a/polyfills/console/timeEnd/tests.js b/polyfills/console/timeEnd/polyfill.test.js similarity index 100% rename from polyfills/console/timeEnd/tests.js rename to polyfills/console/timeEnd/polyfill.test.js diff --git a/polyfills/console/timeStamp/tests.js b/polyfills/console/timeStamp/polyfill.test.js similarity index 100% rename from polyfills/console/timeStamp/tests.js rename to polyfills/console/timeStamp/polyfill.test.js diff --git a/polyfills/console/timeline/tests.js b/polyfills/console/timeline/polyfill.test.js similarity index 100% rename from polyfills/console/timeline/tests.js rename to polyfills/console/timeline/polyfill.test.js diff --git a/polyfills/console/timelineEnd/tests.js b/polyfills/console/timelineEnd/polyfill.test.js similarity index 100% rename from polyfills/console/timelineEnd/tests.js rename to polyfills/console/timelineEnd/polyfill.test.js diff --git a/polyfills/console/trace/tests.js b/polyfills/console/trace/polyfill.test.js similarity index 100% rename from polyfills/console/trace/tests.js rename to polyfills/console/trace/polyfill.test.js diff --git a/polyfills/console/warn/tests.js b/polyfills/console/warn/polyfill.test.js similarity index 100% rename from polyfills/console/warn/tests.js rename to polyfills/console/warn/polyfill.test.js diff --git a/polyfills/document/currentScript/tests.js b/polyfills/document/currentScript/polyfill.test.js similarity index 89% rename from polyfills/document/currentScript/tests.js rename to polyfills/document/currentScript/polyfill.test.js index a0a8eec20..d87f1da7b 100644 --- a/polyfills/document/currentScript/tests.js +++ b/polyfills/document/currentScript/polyfill.test.js @@ -10,6 +10,6 @@ it('returns the current script element when invoked during synchronous evaluatio proclaim.equal(cs.ownerDocument, document); // The rest of this test is highly dependent on the inner workings of the test runner... - proclaim.include(cs.src, 'http://bs-local.com:9876/tests.js'); + proclaim.include(cs.src, 'http://bs-local.com:9876/polyfill.test.js'); proclaim.equal(cs.innerHTML, ''); }); diff --git a/polyfills/document/elementsFromPoint/tests.js b/polyfills/document/elementsFromPoint/polyfill.test.js similarity index 100% rename from polyfills/document/elementsFromPoint/tests.js rename to polyfills/document/elementsFromPoint/polyfill.test.js diff --git a/polyfills/document/visibilityState/tests.js b/polyfills/document/visibilityState/polyfill.test.js similarity index 100% rename from polyfills/document/visibilityState/tests.js rename to polyfills/document/visibilityState/polyfill.test.js diff --git a/polyfills/fetch/tests.js b/polyfills/fetch/polyfill.test.js similarity index 100% rename from polyfills/fetch/tests.js rename to polyfills/fetch/polyfill.test.js diff --git a/polyfills/globalThis/tests.js b/polyfills/globalThis/polyfill.test.js similarity index 100% rename from polyfills/globalThis/tests.js rename to polyfills/globalThis/polyfill.test.js diff --git a/polyfills/location/origin/tests.js b/polyfills/location/origin/polyfill.test.js similarity index 100% rename from polyfills/location/origin/tests.js rename to polyfills/location/origin/polyfill.test.js diff --git a/polyfills/matchMedia/tests.js b/polyfills/matchMedia/polyfill.test.js similarity index 100% rename from polyfills/matchMedia/tests.js rename to polyfills/matchMedia/polyfill.test.js diff --git a/polyfills/queueMicrotask/tests.js b/polyfills/queueMicrotask/polyfill.test.js similarity index 100% rename from polyfills/queueMicrotask/tests.js rename to polyfills/queueMicrotask/polyfill.test.js diff --git a/polyfills/requestAnimationFrame/tests.js b/polyfills/requestAnimationFrame/polyfill.test.js similarity index 100% rename from polyfills/requestAnimationFrame/tests.js rename to polyfills/requestAnimationFrame/polyfill.test.js diff --git a/polyfills/requestIdleCallback/tests.js b/polyfills/requestIdleCallback/polyfill.test.js similarity index 100% rename from polyfills/requestIdleCallback/tests.js rename to polyfills/requestIdleCallback/polyfill.test.js diff --git a/polyfills/screen/orientation/tests.js b/polyfills/screen/orientation/polyfill.test.js similarity index 100% rename from polyfills/screen/orientation/tests.js rename to polyfills/screen/orientation/polyfill.test.js diff --git a/polyfills/setImmediate/tests.js b/polyfills/setImmediate/polyfill.test.js similarity index 100% rename from polyfills/setImmediate/tests.js rename to polyfills/setImmediate/polyfill.test.js diff --git a/polyfills/smoothscroll/tests.js b/polyfills/smoothscroll/polyfill.test.js similarity index 100% rename from polyfills/smoothscroll/tests.js rename to polyfills/smoothscroll/polyfill.test.js diff --git a/polyfills/structuredClone/tests.js b/polyfills/structuredClone/polyfill.test.js similarity index 100% rename from polyfills/structuredClone/tests.js rename to polyfills/structuredClone/polyfill.test.js diff --git a/tasks/buildsources/polyfill.js b/tasks/buildsources/polyfill.js index c4bf65823..1a85bae8f 100644 --- a/tasks/buildsources/polyfill.js +++ b/tasks/buildsources/polyfill.js @@ -111,12 +111,12 @@ module.exports = class Polyfill { } /** - * Path to "tests.js". + * Path to "polyfill.test.js". * * @type {string} */ get testsPath() { - return path.join(this.path.absolute, 'tests.js'); + return path.join(this.path.absolute, 'polyfill.test.js'); } /** @@ -179,7 +179,7 @@ module.exports = class Polyfill { throw new Error(`Incorrect spelling of license property in ${this.name}`); } - this.config.hasTests = fs.existsSync(path.join(this.path.absolute, 'tests.js')); + this.config.hasTests = fs.existsSync(path.join(this.path.absolute, 'polyfill.test.js')); this.config.isTestable = !('test' in this.config && 'ci' in this.config.test && this.config.test.ci === false); this.config.isPublic = this.name.indexOf('_') !== 0; }); diff --git a/tasks/create-new-polyfill.js b/tasks/create-new-polyfill.js index b9a63b416..87a762f1f 100644 --- a/tasks/create-new-polyfill.js +++ b/tasks/create-new-polyfill.js @@ -9,7 +9,7 @@ const polyfillTemplateFolderPath = path.join(__dirname, './polyfill-templates'); const configTemplate = fs.readFileSync(path.join(polyfillTemplateFolderPath, 'config.toml'), { encoding: 'utf-8'}); const polyfillTemplate = fs.readFileSync(path.join(polyfillTemplateFolderPath, 'polyfill.js'), { encoding: 'utf-8'}); const detectTemplate = fs.readFileSync(path.join(polyfillTemplateFolderPath, 'detect.js'), { encoding: 'utf-8'}); -const testsTemplate = fs.readFileSync(path.join(polyfillTemplateFolderPath, 'tests.js'), { encoding: 'utf-8'}); +const testsTemplate = fs.readFileSync(path.join(polyfillTemplateFolderPath, 'olyfill.test.js'), { encoding: 'utf-8'}); const polyfillFolderPath = path.join(__dirname, "../polyfills/", dotToSlash(newPolyfill)); fs.mkdirSync(polyfillFolderPath, {recursive: true}); @@ -17,7 +17,7 @@ fs.mkdirSync(polyfillFolderPath, {recursive: true}); fs.writeFileSync(path.join(polyfillFolderPath, 'polyfill.js'), polyfillTemplate, {encoding: 'utf-8'}); fs.writeFileSync(path.join(polyfillFolderPath, 'config.toml'), configTemplate, {encoding: 'utf-8'}); fs.writeFileSync(path.join(polyfillFolderPath, 'detect.js'), detectTemplate, {encoding: 'utf-8'}); -fs.writeFileSync(path.join(polyfillFolderPath, 'tests.js'), testsTemplate.replace('REPLACE_ME', newPolyfill), {encoding: 'utf-8'}); +fs.writeFileSync(path.join(polyfillFolderPath, 'polyfill.test.js'), testsTemplate.replace('REPLACE_ME', newPolyfill), {encoding: 'utf-8'}); console.log(`Created a new polyfill template at ${polyfillFolderPath}.`); diff --git a/tasks/polyfill-templates/tests.js b/tasks/polyfill-templates/polyfill.test.js similarity index 100% rename from tasks/polyfill-templates/tests.js rename to tasks/polyfill-templates/polyfill.test.js diff --git a/test/polyfills/server.js b/test/polyfills/server.js index 19a833e1e..9c0db7028 100644 --- a/test/polyfills/server.js +++ b/test/polyfills/server.js @@ -124,7 +124,7 @@ app.get( ); app.get( - "/tests.js", + "/polyfill.test.js", cacheFor1Day, async (request, response) => { const feature = request.query.feature; @@ -183,7 +183,7 @@ async function testablePolyfills(ua) { } if (config && config.isTestable && config.isPublic && config.hasTests) { const baseDirectory = path.resolve(__dirname, "../../polyfills"); - const testFile = path.join(baseDirectory, config.baseDir, "/tests.js"); + const testFile = path.join(baseDirectory, config.baseDir, "/polyfill.test.js"); const testSuite = `describe('${polyfill}', function() { it('passes the feature detect', function() { proclaim.ok((function() { diff --git a/test/polyfills/test-runner.handlebars b/test/polyfills/test-runner.handlebars index f6676100a..43d950bbb 100644 --- a/test/polyfills/test-runner.handlebars +++ b/test/polyfills/test-runner.handlebars @@ -11,7 +11,7 @@ - + From e585f3ac31896341e9ed6ab8c3bec1d5a65fed71 Mon Sep 17 00:00:00 2001 From: Romain Menke <11521496+romainmenke@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:44:03 +0200 Subject: [PATCH 3/3] update CI (#50) --- .github/workflows/codeql.yml | 5 ++++- .github/workflows/lint.yml | 2 +- .github/workflows/test-polyfills-exhaustive.yml | 2 +- .github/workflows/test-polyfills.yml | 2 +- .github/workflows/unit-test.yml | 16 +++++++++++++++- package.json | 11 ++++++----- polyfills/Event/scrollend/polyfill.test.js | 4 ++++ 7 files changed, 32 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 094c796f1..782255f69 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -6,6 +6,9 @@ on: merge_group: pull_request: workflow_dispatch: + push: + branches: + - main permissions: security-events: write @@ -43,7 +46,7 @@ jobs: - name: setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm ci diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b69a76c1a..4810f79ef 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: fetch-depth: 1 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: npm ci - run: npm run build diff --git a/.github/workflows/test-polyfills-exhaustive.yml b/.github/workflows/test-polyfills-exhaustive.yml index 7fc3323c2..505f3099d 100644 --- a/.github/workflows/test-polyfills-exhaustive.yml +++ b/.github/workflows/test-polyfills-exhaustive.yml @@ -37,7 +37,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - name: env diff --git a/.github/workflows/test-polyfills.yml b/.github/workflows/test-polyfills.yml index 0f56bed93..ef10fb410 100644 --- a/.github/workflows/test-polyfills.yml +++ b/.github/workflows/test-polyfills.yml @@ -44,7 +44,7 @@ jobs: # - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - name: env diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 1f4d3455a..ed7111301 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -5,14 +5,28 @@ on: jobs: unit-test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: [18, 20, 22] + include: + - node: 18 + older_node_version: true + - node: 20 + older_node_version: true steps: - uses: actions/checkout@v4 with: fetch-depth: 1 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: ${{ matrix.node }} cache: 'npm' - run: npm ci - run: npm run build + + - run: npm run test-older-node + if: ${{ (matrix.older_node_version) }} + - run: npm run test + if: ${{ !(matrix.older_node_version) }} diff --git a/package.json b/package.json index 2555ec2dd..51607ed04 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,11 @@ "build": "npm run clean && node tasks/updatesources && node tasks/buildsources/buildsources", "watch": "npm run clean && node tasks/updatesources && node tasks/buildsources/watchsource", "fmt": "eslint . --fix", - "test-end-to-end": "node --test test/end-to-end", - "test-node": "node --test test/node", - "test-unit": "node --test test/unit", - "test": "node --test test/unit && node --test test/node && node --test test/end-to-end", + "test-end-to-end": "node --test 'test/end-to-end/**/*.test.js'", + "test-node": "node --test 'test/node/**/*.test.js'", + "test-unit": "node --test 'test/unit/**/*.test.js'", + "test": "node --test 'test/unit/**/*.test.js' && node --test 'test/node/**/*.test.js' && node --test 'test/end-to-end/**/*.test.js'", + "test-older-node": "node --test 'test/unit' && node --test 'test/node' && node --test 'test/end-to-end'", "prepublishOnly": "npm run build", "create-new-polyfill": "node ./tasks/create-new-polyfill.js", "update-browserstack-list": "node ./tasks/updatebrowserstacklist.js" @@ -68,6 +69,6 @@ "webdriverio": "^8.0.0" }, "volta": { - "node": "20.11.1" + "node": "22.3.0" } } diff --git a/polyfills/Event/scrollend/polyfill.test.js b/polyfills/Event/scrollend/polyfill.test.js index 6f8766225..303d08f6b 100644 --- a/polyfills/Event/scrollend/polyfill.test.js +++ b/polyfills/Event/scrollend/polyfill.test.js @@ -1,4 +1,8 @@ describe('Event.scrollend', function () { + // Scrolling and scroll events can be flaky in headless mode. + // CI environments are often headless. + this.retries(3); + var el; before(function () {