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.44 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.43 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.42 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.41 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.40 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.39 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.38 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.37 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.36 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.35 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.34 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.33 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.32 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.31 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.30 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.29 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.28 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.27 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.26 node_modules/preact/test-utils/dist/testUtils.js
isomorfeus-preact-10.6.25 node_modules/preact/test-utils/dist/testUtils.js