]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
test: improve Interchange debounce test precision 11259/head
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 13 May 2018 19:46:58 +0000 (21:46 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sun, 13 May 2018 19:46:58 +0000 (21:46 +0200)
commit0e72c1e1fce53be8073609a0e1067ff8980555df
treebd012de70c1ec0612ddb887e93f45b8e99ea136d
parent4419192c298add7c56a2a07217f941dbeb29925c
test: improve Interchange debounce test precision

Prevent some race condition by improving the interchange debounce test precision.

Changes:
* initialize Triggers manually to control and test the debounce time
* nest the timeout that trigger "resize" to make the delay between the last "resize" and the test check more precise (a bit more than the debounce time).

Timeout delays are most often not respected and the differences between several timeouts running in parrallel can be huge.
test/javascript/components/interchange.js