summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-03-08 23:36:44 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-03-08 23:36:44 +0100
commit73bea65db81c67139292d26518a078a4fae38f44 (patch)
tree1d488001bb4808eef9ba29563d23727663ba90dc /_test
parent5d93bd60be38b97a7aba9787bc4a1a220d880dcd (diff)
downloadrpg-73bea65db81c67139292d26518a078a4fae38f44.tar.gz
rpg-73bea65db81c67139292d26518a078a4fae38f44.tar.bz2
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
Diffstat (limited to '_test')
-rw-r--r--_test/cases/lib/exe/js_js_compress.test.php4
1 files changed, 2 insertions, 2 deletions
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(){