mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 11:33:09 +00:00
aaf880c925
* 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
28 lines
831 B
TypeScript
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");
|