Sha256: a996d183a64f228a1a20826893a942c6938802df40420b23c2d55fbb273dfe87

Contents?: true

Size: 957 Bytes

Versions: 75

Compression:

Stored size: 957 Bytes

Contents

var r=require("preact");function n(){return r.options.t=r.options.debounceRendering,r.options.debounceRendering=function(n){return r.options.o=n},function(){return r.options.o&&r.options.o()}}var t=function(r){return null!=r&&"function"==typeof r.then},e=0;function o(){r.options.o&&(r.options.o(),delete r.options.o),void 0!==r.options.t?(r.options.debounceRendering=r.options.t,delete r.options.t):r.options.debounceRendering=void 0}exports.setupRerender=n,exports.act=function(u){if(++e>1){var i=u();return t(i)?i.then(function(){--e}):(--e,Promise.resolve())}var c,f,a=r.options.requestAnimationFrame,v=n();r.options.requestAnimationFrame=function(r){return c=r};var l,p,s=function(){try{for(v();c;)f=c,c=null,f(),v();o()}catch(r){l||(l=r)}r.options.requestAnimationFrame=a,--e};try{p=u()}catch(r){l=r}if(t(p))return p.then(s,function(r){throw s(),r});if(s(),l)throw l;return Promise.resolve()},exports.teardown=o;
//# sourceMappingURL=testUtils.js.map

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
isomorfeus-preact-10.6.24 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.23 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.22 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.21 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.20 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.19 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.18 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.17 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.16 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.15 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.14 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.13 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.12 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.11 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.10 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.9 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.8 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.7 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.6 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.5 node_modules/preact/test-utils/dist/testUtils.js