r12505 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12504‎ | r12505 | r12506 >
Date:10:37, 8 January 2006
Author:avar
Status:old
Tags:
Comment:
* Adding a noxml option for skipping XML well formdness tests in parser tests,
used in the extension tag tests which don't return xhtml
Modified paths:
  • /trunk/phase3/maintenance/parserTests.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.inc
@@ -237,6 +237,8 @@
238238 $titleText = 'Parser test';
239239 }
240240
 241+ $noxml = (bool)preg_match( '~\\b noxml \\b~x', $opts );
 242+
241243 $parser =& new Parser();
242244 wfRunHooks( 'ParserTestParser', array( &$parser ) );
243245 $title =& Title::makeTitle( NS_MAIN, $titleText );
@@ -260,7 +262,7 @@
261263
262264 $this->teardownGlobals();
263265
264 - if( $result === $out && $this->wellFormed( $out ) ) {
 266+ if( $result === $out && ( $noxml === true || $this->wellFormed( $out ) ) ) {
265267 return $this->showSuccess( $desc );
266268 } else {
267269 return $this->showFailure( $desc, $result, $out );

Status & tagging log