Changeset 47122 for trunk/tests/phpunit/tests/formatting/JSEscape.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/formatting/JSEscape.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/JSEscape.php
r46586 r47122 12 12 function test_js_escape_quotes() { 13 13 $out = esc_js( 'foo "bar" \'baz\'' ); 14 // does it make any sense to change " into "? Why not \"?14 // Does it make any sense to change " into "? Why not \"? 15 15 $this->assertEquals( "foo "bar" \'baz\'", $out ); 16 16 } … … 35 35 function test_js_no_carriage_return() { 36 36 $out = esc_js( "foo\rbar\nbaz\r" ); 37 // \r is stripped 37 // \r is stripped. 38 38 $this->assertequals( "foobar\\nbaz", $out ); 39 39 } … … 41 41 function test_js_escape_rn() { 42 42 $out = esc_js( "foo\r\nbar\nbaz\r\n" ); 43 // \r is stripped 43 // \r is stripped. 44 44 $this->assertequals( "foo\\nbar\\nbaz\\n", $out ); 45 45 }
Note: See TracChangeset
for help on using the changeset viewer.