Followup r103865 and r103915
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 22 Nov 2011 23:10:22 +0000 (23:10 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 22 Nov 2011 23:10:22 +0000 (23:10 +0000)
commit6b06770b6d210137c88ba5c130a0eed23e73f9de
treecbdf42b096df499b99a7a92251e25a9d6b6eb7a2
parentde20376cc1b1a640c2e38eba8b71685152c23735
Followup r103865 and r103915

r103915 added a parse error for 'more than 2 decimal points' in a number; this is the wrong place to check for that. Should only check whether there's more digits or identifier chars -- identifier chars would be illegal.

Added test cases for the exponent missing fails, tweaked it to be more consistent (only need to check for one e; if we have more we can lump them in with 'not digits' :)

Also cleaned up no-longer-needed suppress/restore warnings around JS parser invocation
tests/phpunit/includes/libs/JavaScriptMinifierTest.php