Ensure parserTests pass even if wiki has wgUsePigLatin enabled
authorC. Scott Ananian <cscott@cscott.net>
Thu, 21 Jun 2018 15:39:18 +0000 (11:39 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Mon, 10 Sep 2018 15:05:11 +0000 (10:05 -0500)
Some tests implicitly assume that English is a language with no
defined variants, which makes those tests fail if $wgUsePigLatinVariant
is true.

Change-Id: Iac5257a2fcf914a58579f06e340e8a4533befefb

tests/parser/parserTests.txt

index b151002..88797d7 100644 (file)
@@ -12670,10 +12670,13 @@ parsoid=wt2html
 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"hi {{}}"}},"i":0}}]}'>hi {{}}</p>
 !! end
 
+# Ensure we're using a language without variants for this test; even
+# if $wgUsePigLatinVariant is true.  We've picked `de` arbitrarily.
 !! test
 Preprocessor precedence 18: another rightmost wins scenario
 !! options
 parsoid=wt2html
+language=de
 !! wikitext
 {{ -{{{{1|tplarg}}} }} }-
 !! html/php