WordPress.org

Make WordPress Core

Changeset 526 in tests


Ignore:
Timestamp:
02/10/12 22:38:50 (2 years ago)
Author:
nacin
Message:

Ensure that spaces before/after a quote that is curled are also maintained. see #WP20018.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_formatting.php

    r524 r526  
    405405        $this->assertEquals('“quoted”', wptexturize('"quoted"')); 
    406406 
     407        $this->assertEquals('space before ‘quoted’ space after', wptexturize('space before \'quoted\' space after')); 
     408        $this->assertEquals('space before “quoted” space after', wptexturize('space before "quoted" space after')); 
     409 
    407410        $this->assertEquals('(‘quoted’)', wptexturize('(\'quoted\')')); 
    408411        $this->assertEquals('{“quoted”}', wptexturize('{"quoted"}')); 
     
    411414        $this->assertEquals('“qu{ot}ed”', wptexturize('"qu{ot}ed"')); 
    412415 
    413         $this->assertEquals('‘test’s quoted’', wptexturize('\'test\'s quoted\'')); 
    414         $this->assertEquals('“test’s quoted”', wptexturize('"test\'s quoted"')); 
     416        $this->assertEquals(' ‘test’s quoted’ ', wptexturize(' \'test\'s quoted\' ')); 
     417        $this->assertEquals(' “test’s quoted” ', wptexturize(' "test\'s quoted" ')); 
    415418    } 
    416419 
Note: See TracChangeset for help on using the changeset viewer.