Test: Assert that modules loaded correctly.
authorTimo Tijhof <ttijhof@wikimedia.org>
Wed, 3 Apr 2013 19:17:08 +0000 (21:17 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Wed, 3 Apr 2013 21:46:11 +0000 (23:46 +0200)
commitefc1344feabbbc0a3fa7dd64fcd2143894786aec
treed3ac3c92d5914ac607a08251c7c291c8150f4df3
parent6cbad437fa127489736b36cecf0e0beac88f1524
Test: Assert that modules loaded correctly.

Since mw.loader catches any uncaught exceptions that modules
throw at run time, it is hard for QUnit and/or the browser
(e.g. PhantomJS) to know about a failure because there is
no assert failure and no uncaught exception (window.onerror).

VisualEditor's init module, for example, has a problem (bug 45175)
that sometimes causes an error, causing none of the tests to run,
yet the QUnit run would finish successful with simply none of the
VE tests included in the results.

Bug: 44299
Change-Id: Ib6e2b8d1be3e38fd9f1b948407c62da550fce0b4
tests/qunit/data/testrunner.js