mediawiki.util: Remove test for jsMessage
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 26 Nov 2014 06:15:30 +0000 (06:15 +0000)
committerKrinkle <krinklemail@gmail.com>
Wed, 26 Nov 2014 06:27:22 +0000 (06:27 +0000)
commitb1c9a34d8b2b0a42fc78bc66216b20d22b628533
tree45ea66ff3b4cb56c5c12d6aa1320506f925a8663
parent0615b0f2b91c0985313023d6183b56a7317147df
mediawiki.util: Remove test for jsMessage

jsMessage uses mw.notify, which involves an animation.

mw.notify yields an mw.Notification object which has a reference
to the relevant elements.

However the deprecated jsMessage wrapper only returns boolean, so
we have no link to the element and no way to wait for the
animation to finish.

We could set up a mock clock in the test to skip the animation.
However, in this case the test was already useless as method
isn't testable (hardcoded booolean return).

This test was causing the QUnit test suite to fail occasionally
as the mw.notify animation was unfinished and would leak into
other tests.

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