Allow setting default thumb size in parser tests
authorC. Scott Ananian <cscott@cscott.net>
Wed, 19 Mar 2014 18:51:21 +0000 (14:51 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Thu, 20 Mar 2014 17:40:16 +0000 (13:40 -0400)
commite784f96a56f147727a722b0426aace1f3da1d402
tree637081dbf749b0110db86f70517bb94335ad0204
parent6112acac292e4a7cf926cf556138e7b711e2c9eb
Allow setting default thumb size in parser tests

The mediawiki default thumb size is 180px.  The Parsoid default thumb
size is 220px, to match the default thumb size for most WMF wikipedias
(see https://bugzilla.wikimedia.org/show_bug.cgi?id=43336).

This discrepancy leads to inconsistent image-related test output.
Allow a test to set an explicit default thumb size with the
'thumbsize' option so that it is possible to write consistent tests.

Change-Id: Ib764d1f1660a50caaf8f0ff245822d1d1a1d264e
tests/parser/parserTest.inc
tests/parser/parserTests.txt
tests/phpunit/includes/parser/NewParserTest.php