From 006ea63555b5e63d0f20a88e131daa33986f5fb2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 8 Jan 2006 10:37:25 +0000 Subject: [PATCH] * Adding a noxml option for skipping XML well formdness tests in parser tests, used in the extension tag tests which don't return xhtml --- maintenance/parserTests.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index c58c8aa6fc..2abe8ae1ba 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -237,6 +237,8 @@ class ParserTest { $titleText = 'Parser test'; } + $noxml = (bool)preg_match( '~\\b noxml \\b~x', $opts ); + $parser =& new Parser(); wfRunHooks( 'ParserTestParser', array( &$parser ) ); $title =& Title::makeTitle( NS_MAIN, $titleText ); @@ -260,7 +262,7 @@ class ParserTest { $this->teardownGlobals(); - if( $result === $out && $this->wellFormed( $out ) ) { + if( $result === $out && ( $noxml === true || $this->wellFormed( $out ) ) ) { return $this->showSuccess( $desc ); } else { return $this->showFailure( $desc, $result, $out ); -- 2.20.1