Changeset 33271 for trunk/tests/phpunit/tests/formatting/JSEscape.php
- Timestamp:
- 07/14/2015 05:55:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/JSEscape.php
r33148 r33271 24 24 25 25 function test_js_escape_amp() { 26 $out = esc_js('foo & bar &baz; & apos;');27 $this->assertEquals("foo & bar &baz; & apos;", $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 & amp;", $out);32 $this->assertEquals("foo \\' bar \\' baz &", $out); 33 33 } 34 34
Note: See TracChangeset
for help on using the changeset viewer.