]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
test: wait for debounce for slow browsers in Interval debounce test
authorNicolas Coden <nicolas@ncoden.fr>
Fri, 18 May 2018 20:13:04 +0000 (22:13 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Fri, 18 May 2018 20:17:38 +0000 (22:17 +0200)
commitad2a282e6e20f80dd49e399178c47a6e3efeec3c
tree87b5efa499075624c143fd938bef5fa84391c90d
parent2bebd870a3319bebddc2a7019e090374985b95a7
test: wait for debounce for slow browsers in Interval debounce test

Timeout delays are most often not respected and the differences between several timeouts running in parrallel can be huge. To prevent race conditions on slower browsers, we run the debounce test several time to wait for the debounced event to be called, which may be finally called way after the expected time.
test/javascript/components/interchange.js