From 1b82e149aba4921b5c466f1fc4c3b6cf9db8dede Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Thu, 12 Jun 2014 18:50:54 -0700 Subject: [PATCH] Add SVG test --- tests/minifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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

'); -- 2.34.1