summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-12-01 11:12:20 +0100
committerAaron Bohy <aab@odoo.com>2017-12-04 10:01:22 +0100
commit595a405b767eed34f90d48e5f04dff338cc34c2f (patch)
tree592c0edcd2d3eca22ba933e614c17203ca62aae1 /addons/web/static/src/js
parent5fd72753c632b76b97a3653f3ad2bafa0e2cd7f3 (diff)
[IMP] web: tests: patch _.debounce and _.throttle
... to allow them to be called several times without having to wait for the delays. This was already done for _.throttle, by default for the whole test suite, and it couldn't be parameterized in individual tests. This was enough for _.throttle, but the same solution couldn't be applied for _.debounce, because some tests actually test that some handlers are correctly debounced. Those function are now patched in addMockEnvironment, and two parameters can be set: 'debounce' (default: true) and 'throttle' (default: false).
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions