diff options
author | Hakan Sandell <sandell.hakan@gmail.com> | 2012-07-01 11:38:02 +0200 |
---|---|---|
committer | Hakan Sandell <sandell.hakan@gmail.com> | 2012-07-01 11:38:02 +0200 |
commit | 65ee48a57f42826189844ad1039c37a8a675dbab (patch) | |
tree | 05d6a1aceeece7168f6e535b0921bac4b64e0393 | |
parent | e6101bb6d72b59fd88801f5cb82fe5c3433b8010 (diff) | |
download | rpg-65ee48a57f42826189844ad1039c37a8a675dbab.tar.gz rpg-65ee48a57f42826189844ad1039c37a8a675dbab.tar.bz2 |
Made multiline test cases work on windows too
-rw-r--r-- | _test/tests/inc/common_cleanText.test.php | 6 | ||||
-rw-r--r-- | _test/tests/lib/exe/js_js_compress.test.php | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/_test/tests/inc/common_cleanText.test.php b/_test/tests/inc/common_cleanText.test.php index 00e70d4c7..9d4494332 100644 --- a/_test/tests/inc/common_cleanText.test.php +++ b/_test/tests/inc/common_cleanText.test.php @@ -3,11 +3,7 @@ class common_cleanText_test extends DokuWikiTest { function test_unix(){ - $unix = 'one - two - - three'; - + $unix = "one\n two\n\n three"; $this->assertEquals($unix,cleanText($unix)); } diff --git a/_test/tests/lib/exe/js_js_compress.test.php b/_test/tests/lib/exe/js_js_compress.test.php index aa8d82933..49f93cc54 100644 --- a/_test/tests/lib/exe/js_js_compress.test.php +++ b/_test/tests/lib/exe/js_js_compress.test.php @@ -111,12 +111,10 @@ class js_js_compress_test extends DokuWikiTest { } function test_multilinestring(){ - $text = 'var foo = "this is a \\ -multiline string";'; + $text = 'var foo = "this is a \\'."\n".'multiline string";'; $this->assertEquals('var foo="this is a multiline string";',js_compress($text)); - $text = "var foo = 'this is a \\ -multiline string';"; + $text = "var foo = 'this is a \\\nmultiline string';"; $this->assertEquals("var foo='this is a multiline string';",js_compress($text)); } |