Sha256: 0fb37a887cfaebd9b002d55922db746509998ae91133e053a25bd55abdff4f43

Contents?: true

Size: 1.11 KB

Versions: 75

Compression:

Stored size: 1.11 KB

Contents

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],t):t(n.preactTestUtils={},n.preact)}(this,function(n,t){function e(){return t.options.t=t.options.debounceRendering,t.options.debounceRendering=function(n){return t.options.o=n},function(){return t.options.o&&t.options.o()}}var r=function(n){return null!=n&&"function"==typeof n.then},o=0;function i(){t.options.o&&(t.options.o(),delete t.options.o),void 0!==t.options.t?(t.options.debounceRendering=t.options.t,delete t.options.t):t.options.debounceRendering=void 0}n.setupRerender=e,n.act=function(n){if(++o>1){var u=n();return r(u)?u.then(function(){--o}):(--o,Promise.resolve())}var f,c,d=t.options.requestAnimationFrame,p=e();t.options.requestAnimationFrame=function(n){return f=n};var a,l,s=function(){try{for(p();f;)c=f,f=null,c(),p();i()}catch(n){a||(a=n)}t.options.requestAnimationFrame=d,--o};try{l=n()}catch(n){a=n}if(r(l))return l.then(s,function(n){throw s(),n});if(s(),a)throw a;return Promise.resolve()},n.teardown=i});
//# sourceMappingURL=testUtils.umd.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.umd.js
isomorfeus-preact-10.7.0 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.62 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.61 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.60 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.59 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.58 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.57 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.56 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.55 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.54 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.53 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.52 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.51 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.50 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.49 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.48 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.47 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.46 node_modules/preact/test-utils/dist/testUtils.umd.js
isomorfeus-preact-10.6.45 node_modules/preact/test-utils/dist/testUtils.umd.js