JavaScriptMinifier: Add test case for another line-break bug
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 11 Aug 2018 23:24:56 +0000 (00:24 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 11 Aug 2018 23:24:56 +0000 (00:24 +0100)
commit92ce940ec32b6af792ec6b5f4b8cd81080868307
tree565e91b5b728b9be0e2a16a96ca0fcf804a75389
parentda3aa28cea9fa26a21e5478f89d71347010c6b9f
JavaScriptMinifier: Add test case for another line-break bug

Discovered by adding a test case that uses file_get_contents()
to pass jquery.js, and then scan the PHPUnit output for an entry
containing `return` by itself on a line where the next line
is isn't `;` - then reducing it to a test case as small as possible.

This was reduced from the definition of jQuery.event.addProp.

Bug: T201606
Change-Id: I1f907436c32630102e60e3ded7092dbeb9669fe8
tests/phpunit/includes/libs/JavaScriptMinifierTest.php