Parser tests: Make Foobar.svg consistent.
authorC. Scott Ananian <cscott@cscott.net>
Tue, 18 Mar 2014 17:00:11 +0000 (13:00 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Tue, 18 Mar 2014 17:27:55 +0000 (13:27 -0400)
commiteca4351d1f0a168f00be861d92ed2b2375aad4f5
tree1bea88f05f009084ab88a4a7037e722b194fb205
parent2eefaf1705ea1648c233be51009f873e46b5cf6c
Parser tests: Make Foobar.svg consistent.

The parserTest.inc file created metadata saying that Foobar.svg was
240x180px, but created an empty SVG file; the DEFAULT_WIDTH and
DEFAULT_HEIGHT in includes/media/SVGMetadataExtractor.php would have
caused this to be treated as a 512x512px image.

In NewParserTest.php, a 200x200px image was created for Foobar.svg.

That caused inconsistent and confusing results for SVG-related parser
tests, depending on which of the testing frameworks you used.

Fixed both of these to use a consistent 240x180px image, since
non-square images are better for checking correct scaling.
(Parsoid has always used a 240x180px size for Foobar.svg).
The non-square image has caused three parser test results to
slightly change.

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