summaryrefslogtreecommitdiff
path: root/_test/tests/lib/exe/js_js_compress.test.php
diff options
context:
space:
mode:
Diffstat (limited to '_test/tests/lib/exe/js_js_compress.test.php')
-rw-r--r--_test/tests/lib/exe/js_js_compress.test.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/_test/tests/lib/exe/js_js_compress.test.php b/_test/tests/lib/exe/js_js_compress.test.php
index cda05162d..aa8d82933 100644
--- a/_test/tests/lib/exe/js_js_compress.test.php
+++ b/_test/tests/lib/exe/js_js_compress.test.php
@@ -110,6 +110,17 @@ class js_js_compress_test extends DokuWikiTest {
$this->assertEquals(js_compress($text),$text);
}
+ function test_multilinestring(){
+ $text = 'var foo = "this is a \\
+multiline string";';
+ $this->assertEquals('var foo="this is a multiline string";',js_compress($text));
+
+ $text = "var foo = 'this is a \\
+multiline string';";
+ $this->assertEquals("var foo='this is a multiline string';",js_compress($text));
+ }
+
+
/**
* Test the files provided with the original JsStrip
*/