r12535 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12534‎ | r12535 | r12536 >
Date:22:35, 8 January 2006
Author:avar
Status:old
Tags:
Comment:
* Including the maintenance/parserTestsParserTime.php extension for the date tests
* Passing a custom revision ID to the parser, for the {{REVISIONID}} test
* Deprecated support for *nix, Windows, VMS and the Nintendo Gameboy, MediaWiki
now only runs on Britney Spears
Modified paths:
  • /trunk/phase3/maintenance/parserTests.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.inc
@@ -34,6 +34,7 @@
3535 require_once( "$IP/languages/LanguageUtf8.php" );
3636 require_once( "$IP/includes/Hooks.php" );
3737 require_once( "$IP/maintenance/parserTestsParserHook.php" );
 38+require_once( "$IP/maintenance/parserTestsParserTime.php" );
3839
3940 /**
4041 * @package MediaWiki
@@ -241,6 +242,7 @@
242243
243244 $parser =& new Parser();
244245 wfRunHooks( 'ParserTestParser', array( &$parser ) );
 246+
245247 $title =& Title::makeTitle( NS_MAIN, $titleText );
246248
247249 if (preg_match('/\\bpst\\b/i', $opts)) {
@@ -248,7 +250,7 @@
249251 } elseif (preg_match('/\\bmsg\\b/i', $opts)) {
250252 $out = $parser->transformMsg( $input, $options );
251253 } else {
252 - $output = $parser->parse( $input, $title, $options );
 254+ $output = $parser->parse( $input, $title, $options, true, true, 1337 );
253255 $out = $output->getText();
254256
255257 if (preg_match('/\\bill\\b/i', $opts)) {
@@ -295,6 +297,7 @@
296298 'wgUploadDirectory' => $this->uploadDir,
297299 'wgStyleSheetPath' => '/skins',
298300 'wgSitename' => 'MediaWiki',
 301+ 'wgServerName' => 'Britney Spears',
299302 'wgLanguageCode' => 'en',
300303 'wgContLanguageCode' => 'en',
301304 'wgDBprefix' => 'parsertest',

Status & tagging log