(bug 44459) Implement mw.message.text():
authorMatthew Flaschen <mflaschen@wikimedia.org>
Tue, 12 Feb 2013 04:16:08 +0000 (23:16 -0500)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Tue, 12 Feb 2013 08:26:06 +0000 (08:26 +0000)
commit2564de082edf20ee7d01dd76cbe169ae041c44f8
treed51675b5399f8f90c95849a394b85d26e44e8244
parent343382e4b783d528d7b1a3153681463c4c6a4597
(bug 44459) Implement mw.message.text():

* Change default message format in mediawiki.js from plain to text (this includes behavior of mw.msg shorthand).
* Code changes are primarily in jqueryMsg, with minor supporting changes in mediawiki.
* Organize tests by public entrypoint (mediawiki or mediawiki.jqueryMsg).
* Additional tests and assertions for all public entry points, for new and existing behavior.
* Convenience test assertion methods
* Add explanatory comments for new and existing code.
* Add setting to jqueryMsg for format, defaulting to parse, to preserve existing behavior for direct callers to jqueryMsg's public API.
* Since there are now two ways of constructing the abstract syntax tree, add a new parameter to the cache's key scheme.
* Minor formatting

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