diff --git a/cake/tests/cases/libs/view/helpers/javascript.test.php b/cake/tests/cases/libs/view/helpers/javascript.test.php index 7c4731b6c71..634e207d2f4 100644 --- a/cake/tests/cases/libs/view/helpers/javascript.test.php +++ b/cake/tests/cases/libs/view/helpers/javascript.test.php @@ -648,6 +648,10 @@ function testEscapeString() { $result = $this->Javascript->escapeString('CakePHP: \'Rapid Development Framework\''); $expected = 'CakePHP: \\\'Rapid Development Framework\\\''; $this->assertEqual($result, $expected); + + $result = $this->Javascript->escapeString('my \\"string\\"'); + $expected = 'my \\\"string\\\"'; + $this->assertEqual($result, $expected); } /** * testAfterRender method