Organize tests

This commit is contained in:
Tim Schaub
2021-04-27 15:41:14 -07:00
parent 278e355795
commit 490cfabe91
599 changed files with 12374 additions and 1603 deletions

16
test/browser/spec/util.js Normal file
View File

@@ -0,0 +1,16 @@
export function overrideRAF() {
const raf = window.requestAnimationFrame;
const caf = window.cancelAnimationFrame;
window.requestAnimationFrame = function (callback) {
return setTimeout(callback, 1);
};
window.cancelAnimationFrame = function (key) {
return clearTimeout(key);
};
return function () {
window.requestAnimationFrame = raf;
window.cancelAnimationFrame = caf;
};
}