From: sndrs Date: Thu, 13 Jun 2013 14:36:56 +0000 (+0100) Subject: tests for 6e5005ef7ed7c3dd9baf6ecc39c3ec1b2470b068 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=903974c81a1b0d46fec7b3beb0519775181c77f5;p=html-minifier.git tests for 6e5005ef7ed7c3dd9baf6ecc39c3ec1b2470b068 dammit! commited the wrong thing…fix that --- diff --git a/tests/minifier.js b/tests/minifier.js index 444defb..a99ef41 100644 --- a/tests/minifier.js +++ b/tests/minifier.js @@ -78,7 +78,7 @@ 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', 'tt', 'u'].forEach(function(el){ - equal(minify('

foo <'+el+'>baz bar

'), '

foo<'+el+'>baz bar

'); + equal(minify('

foo <'+el+'>baz bar

'), '

foo <'+el+'>baz bar

'); equal(minify('

foo<'+el+'>bazbar

'), '

foo<'+el+'>bazbar

'); }) equal(minify('

foo bar

'), '

foo bar

');