MediaWiki  master
generateJqueryMsgData.php File Reference

Go to the source code of this file.

Classes

class  GenerateJqueryMsgData

Variables

 $maintClass = "GenerateJqueryMsgData"
 $maintenanceDir = dirname( dirname( dirname( __DIR__ ) ) ) . '/maintenance'
 This PHP script defines the spec that the mediawiki.jqueryMsg module should conform to.

Variable Documentation

$maintClass = "GenerateJqueryMsgData"

Definition at line 151 of file generateJqueryMsgData.php.

$maintenanceDir = dirname( dirname( dirname( __DIR__ ) ) ) . '/maintenance'

This PHP script defines the spec that the mediawiki.jqueryMsg module should conform to.

It does this by looking up the results of various kinds of string parsing, with various languages, in the current installation of MediaWiki. It then outputs a static specification, mapping expected inputs to outputs, which can be used fed into a unit test framework. (QUnit, Jasmine, anything, it just outputs an object with key/value pairs).

This is similar to Michael Dale ([email protected])'s parser tests, except that it doesn't look up the API results while doing the test, so the test run is much faster (at the cost of being out of date in rare circumstances. But mostly the parsing that we are doing in Javascript doesn't change much).

Definition at line 64 of file generateJqueryMsgData.php.