Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/JSEscape.php

    r46586 r47122  
    1212    function test_js_escape_quotes() {
    1313        $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 \"?
    1515        $this->assertEquals( "foo "bar" \'baz\'", $out );
    1616    }
     
    3535    function test_js_no_carriage_return() {
    3636        $out = esc_js( "foo\rbar\nbaz\r" );
    37         // \r is stripped
     37        // \r is stripped.
    3838        $this->assertequals( "foobar\\nbaz", $out );
    3939    }
     
    4141    function test_js_escape_rn() {
    4242        $out = esc_js( "foo\r\nbar\nbaz\r\n" );
    43         // \r is stripped
     43        // \r is stripped.
    4444        $this->assertequals( "foo\\nbar\\nbaz\\n", $out );
    4545    }
Note: See TracChangeset for help on using the changeset viewer.