nextcloud/core/js/tests/specs
Vincent Petry f2de58db8c
Work around snap.js state mess
Snap.js is not robust enough to prevent multiple calls to open() or
close(), so we added more checks to prevent these happening even when an
animation is in progress.

Because if we let this through, snap.js will not notice that the
animation is already done (or a duplicate animation was started),
so the "transitionend" event will not fire a second time.

During an animation, snap.js sets up a setInterval() that hogs the CPU
during the animation. Since a transition doesn't always end due to the
above conditions, that CPU hogging would stay forever.

This is the best workaround so far, it seems it's not possible to cancel
that interval from the outside nor to trigger events to make it do so.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2020-11-02 17:31:18 +01:00
..
files Fix expected depth as string 2019-01-24 21:15:25 +01:00
public Improve URL detection 2018-07-31 17:11:46 +02:00
systemtags Adjust the JS unit tests 2016-12-06 17:50:57 +01:00
appsSpec.js Jsunit fixes 1 2018-07-20 23:38:04 +02:00
contactsmenuSpec.js There was an error loading → could not load 2018-01-20 09:15:50 +01:00
coreSpec.js Work around snap.js state mess 2020-11-02 17:31:18 +01:00
jquery.avatarSpec.js Fix tests 2018-01-08 10:36:06 +01:00
jquery.contactsmenuSpec.js Tests: Remove spacing from html before comparing the template 2018-10-16 10:49:34 +02:00
jquery.placeholderSpec.js Generate legacy image placeholder text by taking first letters 2020-04-30 07:17:47 +00:00
l10nSpec.js Fix js l10n registration to also work with more than one bundle 2019-06-26 10:07:21 +02:00
mimeTypeSpec.js Fix usage of deprecated OC.webroot 2018-10-09 13:53:59 +02:00
oc-backbone-webdavSpec.js Fix system tags proppatch with booleans 2016-01-27 11:09:43 +01:00
setupchecksSpec.js Update new test as well 2020-04-01 13:20:01 +02:00