From 73bea65db81c67139292d26518a078a4fae38f44 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 8 Mar 2007 23:36:44 +0100 Subject: js_compress updates This ports the fixes from the original python code to DokuWiki's js_compress functions. The unit tests now pass. darcs-hash:20070308223644-7ad00-56ea99689a62e9752f4814b5dc7ada02eae59089.gz --- _test/cases/lib/exe/js_js_compress.test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_test') diff --git a/_test/cases/lib/exe/js_js_compress.test.php b/_test/cases/lib/exe/js_js_compress.test.php index b79cd9ab4..bd00c9c4f 100644 --- a/_test/cases/lib/exe/js_js_compress.test.php +++ b/_test/cases/lib/exe/js_js_compress.test.php @@ -56,7 +56,7 @@ class js_js_compress_test extends UnitTestCase { function test_dquotrunaway(){ $text = 'var foo="Now where does it end'; - $this->assertEqual(js_compress($text), "$text\n"); //\n is added by compressor + $this->assertEqual(js_compress($text), "$text"); } function test_squot1(){ @@ -66,7 +66,7 @@ class js_js_compress_test extends UnitTestCase { function test_squotrunaway(){ $text = "var foo='Now where does it end"; - $this->assertEqual(js_compress($text), "$text\n"); //\n is added by compressor + $this->assertEqual(js_compress($text), "$text"); } function test_nl1(){ -- cgit v1.2.3