From 80a47290a7a01f2a320d09d387eea690ce1f62b4 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 6 Aug 2012 20:34:51 +0200 Subject: do not recompress already minified js FS#2574 --- _test/tests/lib/exe/js_js_compress.test.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to '_test') diff --git a/_test/tests/lib/exe/js_js_compress.test.php b/_test/tests/lib/exe/js_js_compress.test.php index 49f93cc54..b1ae2a84f 100644 --- a/_test/tests/lib/exe/js_js_compress.test.php +++ b/_test/tests/lib/exe/js_js_compress.test.php @@ -118,6 +118,32 @@ class js_js_compress_test extends DokuWikiTest { $this->assertEquals("var foo='this is a multiline string';",js_compress($text)); } + function test_nocompress(){ + $text = <<assertEquals($out, js_compress($text)); + } /** * Test the files provided with the original JsStrip -- cgit v1.2.3