resourceloader: Remove "expected error" noise from mw.loader tests
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 24 Sep 2019 16:42:42 +0000 (17:42 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 24 Sep 2019 16:42:42 +0000 (17:42 +0100)
commit74006d4f09931f1eb69e8ed6d3293c25a8e97498
tree8336c98482a4d87825b0718d89330af66797001f
parent66eb92b458b4b43f0ca0970d7bbc440f9252e401
resourceloader: Remove "expected error" noise from mw.loader tests

After commit bbded40a2b26c, the stub for mw.track no longer worked
as originally intended, causing the stack traces to be printed
to the Karma output and browser console again.

The test still passed because mw.trackError calls mw.track, but
it no longer stubbed out the trace logging noise.

Also simplify some assertion messages while at it, these are meant
to describe the subject (the compared value) not be the value
itself (which is the second param) and not the error message
(which QUnit produces).

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