mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
tests: Add a comment explaining why Promise.all()
is not used
This commit is contained in:
parent
01184cd1aa
commit
42026ff771
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ const helper = {};
|
|||
};
|
||||
|
||||
if (!win.$) await load('../../static/js/vendors/jquery.js');
|
||||
// sendkeys.js depends on jQuery, so it cannot be loaded until jQuery has finished loading. (In
|
||||
// other words, do not load both jQuery and sendkeys inside a Promise.all() call.)
|
||||
if (!win.bililiteRange && includeSendkeys) await load('../tests/frontend/lib/sendkeys.js');
|
||||
|
||||
win.$.window = win;
|
||||
|
|
Loading…
Reference in a new issue