Skip to content

Commit

Permalink
FLUID-6233: Increasing delays for fluid.debounce.
Browse files Browse the repository at this point in the history
At least on older versions of windows such small timeouts could not be
resolved properly.
  • Loading branch information
jobara committed Dec 11, 2017
1 parent 06ac2c7 commit ae3abe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/framework-tests/core/js/FluidJSTests.js
Expand Up @@ -313,16 +313,16 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
var result = {};
var lead = fluid.debounce(function (val) {
result.lead = val;
}, 3, true);
}, 300, true);
var trail = fluid.debounce(function (val) {
result.trail = val;
}, 3);
}, 300);

setTimeout(function () {
jqUnit.assertEquals("The first value should be returned when accepting the leading response", fluid.tests.debounceTests[0], result.lead);
jqUnit.assertEquals("The last value should be returned when accepting the trailing response", fluid.tests.debounceTests[4], result.trail);
jqUnit.start();
}, 5);
}, 500);

fluid.each(fluid.tests.debounceTests, lead);
fluid.each(fluid.tests.debounceTests, trail);
Expand Down

0 comments on commit ae3abe4

Please sign in to comment.