mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-15 03:35:10 +00:00
93f1c9f79e
This heavily relied on deferreds getting resolved synchroneously, which (for .then) is no longer the case with jQuery 3. There's also a difference in how chained .then's get resolved, and $.when no longer propagates notify(). The changes in here are basically: * fix use of $.when, manually passing along notify() * use .then in some places, instead of .done, .fail, .progress * fix progress bar hiding in setupProgressBar, which assumed sync * fixed tests, mostly by using fake timers to give async stuff a chance to execute Bug: T164473 Change-Id: Ib51ddd8bc6254a477861588fb16f57565353afe1 |
||
---|---|---|
.. | ||
logging | ||
model | ||
provider | ||
routing | ||
ui | ||
mmv.bootstrap.test.js | ||
mmv.Config.test.js | ||
mmv.EmbedFileFormatter.test.js | ||
mmv.HtmlUtils.test.js | ||
mmv.lightboximage.test.js | ||
mmv.lightboxinterface.test.js | ||
mmv.test.js | ||
mmv.testhelpers.js | ||
mmv.ThumbnailWidthCalculator.test.js |