dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4466b2
)
skip math-related tests if $wgUseTeX is set to false in LocalSettings: this probably...
author
Ilmari Karonen
<vyznev@users.mediawiki.org>
Mon, 31 Aug 2009 14:29:11 +0000
(14:29 +0000)
committer
Ilmari Karonen
<vyznev@users.mediawiki.org>
Mon, 31 Aug 2009 14:29:11 +0000
(14:29 +0000)
maintenance/parserTests.inc
patch
|
blob
|
history
diff --git
a/maintenance/parserTests.inc
b/maintenance/parserTests.inc
index
8525594
..
6a5ffdd
100644
(file)
--- a/
maintenance/parserTests.inc
+++ b/
maintenance/parserTests.inc
@@
-367,6
+367,12
@@
class ParserTest {
$section = null;
continue;
}
+ if ( preg_match('/\\bmath\\b/i', $data['options']) && !$this->savedGlobals['wgUseTeX'] ) {
+ # don't run math tests if $wgUseTeX is set to false in LocalSettings
+ $data = array();
+ $section = null;
+ continue;
+ }
$result = $this->runTest(
$this->chomp( $data['test'] ),
$this->chomp( $data['input'] ),