mediawiki-extensions-Multim.../resources/mmv
Matthias Mullie d204ecc99a Fix mmv.bootstrap qunit tests
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.

These tests did not wait for the deferreds to get resolved async,
so that had to change. Worse even: some functionality was tested
by assuming a handler would not be called (= the test in that
handler would not be called), which didn't make the test run,
because we never even waited for it to be called.

The changes in here are basically:
* make mmv.bootstrap.js correctly use .then instead of .done & fail
* let mmw.bootstrap.test.js tests wait for unresolved async promises
* check call counts instead of running tests inside of callbacks
* limit use of fake timer to the 1 test that needs it (it interferes
  with async, which otherwise don't get resolved)

Bug: T164473
Change-Id: I3ca4f786890ad1646f71fe336afdb61e5c3b01c7
2017-05-16 16:48:20 +02:00
..
img Align to WikimediaUI style guide and code cleanup 2017-03-02 15:55:01 -08:00
logging build: Replace jshint/jscs with eslint 2017-01-10 10:24:39 -08:00
model build: Replace jshint/jscs with eslint 2017-01-10 10:24:39 -08:00
provider build: Replace jshint/jscs with eslint 2017-01-10 10:24:39 -08:00
routing build: Introduce jshint & jscs and make a pass 2016-07-19 13:48:06 -07:00
ui Use <button> instead of <div> 2017-03-22 12:06:15 +05:30
mmv.base.js build: Introduce jshint & jscs and make a pass 2016-07-19 13:48:06 -07:00
mmv.bootstrap.autostart.js Replace $( document ).ready(...) by $(...) 2017-01-06 16:04:56 +01:00
mmv.bootstrap.js Fix mmv.bootstrap qunit tests 2017-05-16 16:48:20 +02:00
mmv.bootstrap.less Align to WikimediaUI style guide and code cleanup 2017-03-02 15:55:01 -08:00
mmv.Config.js build: Replace jshint/jscs with eslint 2017-01-10 10:24:39 -08:00
mmv.EmbedFileFormatter.js build: Replace jshint/jscs with eslint 2017-01-10 10:24:39 -08:00
mmv.globals.less Replace colors with overhauled WCAG 2.0 compliant palette 2016-11-19 03:31:16 +00:00
mmv.head.js Replace $( document ).ready(...) by $(...) 2017-01-06 16:04:56 +01:00
mmv.HtmlUtils.js build: Introduce jshint & jscs and make a pass 2016-07-19 13:48:06 -07:00
mmv.js Fix displaying images with uppercase extension. 2017-01-25 01:20:09 +02:00
mmv.lightboximage.js build: Replace jshint/jscs with eslint 2017-01-10 10:24:39 -08:00
mmv.lightboxinterface.js Use <button> instead of <div> 2017-03-22 12:06:15 +05:30
mmv.lightboxinterface.less Align to WikimediaUI style guide and code cleanup 2017-03-02 15:55:01 -08:00
mmv.mixins.less Align to WikimediaUI style guide and code cleanup 2017-03-02 15:55:01 -08:00
mmv.ThumbnailWidthCalculator.js Remove double spaces 2016-11-19 03:31:06 +00:00