From: alexlamsl Date: Mon, 4 Apr 2016 11:10:16 +0000 (+0800) Subject: enable more PHPTAL tests X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=5e86393eeffc0d7a4969c610f34f61b65b697040;p=html-minifier.git enable more PHPTAL tests --- diff --git a/tests/minifier.js b/tests/minifier.js index 39818ee..ca2267d 100644 --- a/tests/minifier.js +++ b/tests/minifier.js @@ -2364,14 +2364,17 @@ test('tests from PHPTAL', function() { ['
', '
'],*/ ['xxxx
foo
', ' x x x x
foo
'], ['', ' '], - /* minifier does not reorder attributes - ['x', 'x'], - ['', ''],*/ + // closing slash and optional attribute quotes removed by minifier, but not by PHPTAL + // attribute ordering differences between minifier and PHPTAL + ['x', 'x'], + ['', ''], ['
\n\n\ntest
', '
\n\n\ntest
'], /* single line-break preceding
 is redundant, assuming 
 is block element
     ['
test
', '
\ntest
'],*/ - // optional attribute quotes removed by minifier, but not by PHPTAL - ['', ''], + // closing slash and optional attribute quotes removed by minifier, but not by PHPTAL + // attribute ordering differences between minifier and PHPTAL + // redundant inter-attribute spacing removed by minifier, but not by PHPTAL + ['', ''], /* minifier does not optimise in HTML5 mode ['', ''],*/ /* minifier does not optimise