From: Jonathan Neal Date: Fri, 13 Jun 2014 01:50:54 +0000 (-0700) Subject: Add SVG test X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1b82e149aba4921b5c466f1fc4c3b6cf9db8dede;p=html-minifier.git Add SVG test --- diff --git a/tests/minifier.js b/tests/minifier.js index f6552f2..58fa999 100644 --- a/tests/minifier.js +++ b/tests/minifier.js @@ -87,7 +87,7 @@ 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', 'b', 'big', 'button', 'code', 'em', 'font', 'i', 'kbd', 'mark', 'q', 's', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'svg', 'time', 'tt', 'u'].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

');