From: alexlamsl Date: Thu, 4 Feb 2016 17:16:40 +0000 (+0800) Subject: update tag list for tests X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e6486109b184b5b1f170fbbe9b1d85c444b277a5;p=html-minifier.git update tag list for tests --- diff --git a/tests/minifier.js b/tests/minifier.js index ac34ee0..10ca69e 100644 --- a/tests/minifier.js +++ b/tests/minifier.js @@ -94,7 +94,12 @@ test('space normalization around text', function() { equal(minify('

blah

\n\n\n '), '

blah

'); // tags from collapseWhitespaceSmart() - ['a', 'b', 'big', 'button', 'code', 'em', 'font', 'i', 'kbd', 'mark', 'q', 's', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'time', 'tt', 'u'].forEach(function(el) { + [ + 'a', 'abbr', 'acronym', 'b', 'bdi', 'bdo', 'big', 'button', 'cite', + 'code', 'del', 'dfn', 'em', 'font', 'i', 'ins', 'kbd', 'mark', 'math', + 'q', 'rt', 'rp', 's', 'samp', 'small', 'span', 'strike', 'strong', + 'sub', 'sup', 'svg', 'time', 'tt', 'u', 'var' + ].forEach(function(el) { equal(minify('

foo <' + el + '>baz bar

', { collapseWhitespace: true }), '

foo <' + el + '>baz bar

'); equal(minify('

foo<' + el + '>bazbar

', { collapseWhitespace: true }), '

foo<' + el + '>bazbar

'); equal(minify('

foo <' + el + '>bazbar

', { collapseWhitespace: true }), '

foo <' + el + '>bazbar

');