mw.loader: Clean up unit tests by using newer QUnit syntax
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 4 Aug 2016 23:24:07 +0000 (16:24 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 4 Aug 2016 23:38:12 +0000 (16:38 -0700)
commit2d68c62667bd6c0a0e51c164f21426ab4a075e65
tree99774981cbea6a635a7d05adf9790a97c0a720f2
parent2dc03ee268dc6777e475b4319254c81a1bbb1ed4
mw.loader: Clean up unit tests by using newer QUnit syntax

* Remove use of deprecated asyncTest() and QUnit.start().
  Instead, use test() and assert.async().

* Where possible, simply return a Promise instead of manually
  attaching up assert.async() to done(), fail() or always().

See <https://api.qunitjs.com/async/> and <https://api.qunitjs.com/QUnit.test/>

Change-Id: I8ec7fdc9c271bbc17555f2e750032282b1683d0e
tests/qunit/suites/resources/mediawiki/mediawiki.test.js