Changeset 33148 for trunk/tests/phpunit/tests/formatting/JSEscape.php
- Timestamp:
- 07/09/2015 08:55:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/JSEscape.php
r32850 r33148 24 24 25 25 function test_js_escape_amp() { 26 $out = esc_js('foo & bar &baz; & nbsp;');27 $this->assertEquals("foo & bar &baz; & nbsp;", $out);26 $out = esc_js('foo & bar &baz; ''); 27 $this->assertEquals("foo & bar &baz; '", $out); 28 28 } 29 29 30 30 function test_js_escape_quote_entity() { 31 31 $out = esc_js('foo ' bar ' baz &'); 32 $this->assertEquals("foo \\' bar \\' baz & #x26;", $out);32 $this->assertEquals("foo \\' bar \\' baz &", $out); 33 33 } 34 34
Note: See TracChangeset
for help on using the changeset viewer.