WordPress.org

Make WordPress Core

Changeset 558 in tests


Ignore:
Timestamp:
03/02/12 00:18:44 (2 years ago)
Author:
kurtpayne
Message:

Test for #19855 - Optimize wpautop by skipping the contents of <pre> blocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_formatting.php

    r546 r558  
    617617        $this->assertEquals($expected, wpautop($test_data)); 
    618618    } 
     619     
     620     
     621    function test_large_text() { 
     622        $this->knownWPBug( 19855 ); 
     623        $str = '<pre>' . file_get_contents( realpath( dirname( __FILE__ ) . '/../wp-testdata/formatting/sizzle.js' ) ) . '</pre>'; 
     624        $this->assertEquals( "<p>$str</p>", trim( wpautop( $str ) ) ); 
     625    } 
    619626} 
    620627 
Note: See TracChangeset for help on using the changeset viewer.