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.7.1 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.7.0 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.62 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.61 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.60 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.59 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.58 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.57 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.56 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.55 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.54 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.53 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.52 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.51 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.50 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.49 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.48 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.47 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.46 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.45 node_modules/preact/test-utils/dist/testUtils.js