MediaWiki
REL1_19
|
Go to the source code of this file.
Classes | |
class | MakeLanguageSpec |
Variables | |
$maintClass = "MakeLanguageSpec" | |
$maintenanceDir = dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . '/maintenance' | |
This PHP script defines the spec that the Javascript message parser should conform to. |
$maintClass = "MakeLanguageSpec" |
Definition at line 110 of file makeJqueryMsgSpec.php.
$maintenanceDir = dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . '/maintenance' |
This PHP script defines the spec that the Javascript message parser should conform to.
It does this by looking up the results of various string 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 with the JasmineBDD framework. This specification can then be used by simply including it into the SpecRunner.html file.
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 Jasmine 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 17 of file makeJqueryMsgSpec.php.