Add PHPUnit tests for the minification failure case in bug 32548.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 21 Nov 2011 22:20:06 +0000 (22:20 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 21 Nov 2011 22:20:06 +0000 (22:20 +0000)
commit8bf802734c4b5f30f9231b7ce2c1c455c6c50e6e
treeff92a8d5ea6daa93fa808d4be10869ede0a73d76
parent641cf76f6f026db6fbe82c658e9021e878fd49c7
Add PHPUnit tests for the minification failure case in bug 32548.

This will trigger 2 test failures, where an exponent in a JS numeric literal gets split over line breaks at the '-' or '+', causing a parse error in the resulting output.
A number with the same string length but without using + or - in the exponent passes through fine, indicating that it's the -/+ that's getting misinterpreted.
tests/phpunit/includes/libs/JavaScriptMinifierTest.php