Changeset 32850 for trunk/tests/phpunit/tests/formatting/JSEscape.php
- Timestamp:
- 06/18/2015 09:59:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/JSEscape.php
r25002 r32850 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.