Tone.js/test/helper/Supports.ts
Yotam Mann aaf880c925
Using web-test-runner for tests, updating import paths (#1242)
* WIP moving tests to web-test-runner

* updating thresholds

* Adding file extensions

* Testing integrations

* linting

* fixing dep

* moving back to root dir

* prettier all of the files

* updating eslint rules to use with prettier

* remove import package

* moving tsignore around

* removing unneeded ignores

* all tests run on puppeteer, no need for testing guards

* linting

* import type syntax

* cleaning up

* Update package.json
2024-05-03 14:31:14 -04:00

28 lines
831 B
TypeScript

// // import { UAParser } from "ua-parser-js";
// // const parsed = new UAParser().getBrowser();
// const name = "Chrome" as string;
// const version = 121;
// function is(browser, above?): boolean {
// return false;
// // above = above || 0;
// // return name.includes(browser) && version >= above;
// }
// function isnt(browser, below?): boolean {
// below = below || Infinity;
// return !(name.includes(browser) && version <= below);
// }
// function isntVersion(browser, browserVersion?): boolean {
// return name.includes(browser) && version !== browserVersion;
// }
// // if the tests run in focus
// // export const ONLINE_TESTING = isntVersion("Chrome", 71);
// // firefox does not invoke AudioBufferSourceNode.onended in the offline context
// // export const OFFLINE_BUFFERSOURCE_ONENDED = isnt("Firefox");