Make WordPress Core


Ignore:
Timestamp:
07/16/2012 05:24:25 PM (13 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_includes_formatting.php

    r894 r903  
    170170            'In his famous speech “You and Your research” (here:
    171171            http://www.cs.virginia.edu/~robins/YouAndYourResearch.html)
    172             Richard Hamming wrote about people getting more done with their doors closed, but', 
     172            Richard Hamming wrote about people getting more done with their doors closed, but',
    173173        );
    174174        $urls_expected = array(
     
    184184            'In his famous speech “You and Your research” (here:
    185185            <a href="http://www.cs.virginia.edu/~robins/YouAndYourResearch.html" rel="nofollow">http://www.cs.virginia.edu/~robins/YouAndYourResearch.html</a>)
    186             Richard Hamming wrote about people getting more done with their doors closed, but', 
     186            Richard Hamming wrote about people getting more done with their doors closed, but',
    187187        );
    188188        foreach ($urls_before as $key => $url) {
     
    754754     *
    755755     * @ticket 19855
    756      */ 
     756     */
    757757    public function test_skip_pre_elements() {
    758758        $code = file_get_contents( DIR_TESTDATA . '/formatting/sizzle.js' );
    759759        $code = str_replace( "\r", '', $code );
    760760        $code = htmlentities( $code );
    761        
     761
    762762        // Not wrapped in <p> tags
    763763        $str = "<pre>$code</pre>";
     
    766766        // Text before/after is wrapped in <p> tags
    767767        $str = "Look at this code\n\n<pre>$code</pre>\n\nIsn't that cool?";
    768        
     768
    769769        // Expected text after wpautop
    770770        $expected = '<p>Look at this code</p>' . "\n<pre>" . $code . "</pre>\n" . '<p>Isn\'t that cool?</p>';
     
    776776        $this->assertEquals( $expected, trim( wpautop( $str ) ) );
    777777    }
    778    
     778
    779779    /**
    780780     * wpautop() Should not add <br/> to "<input>" elements
    781781     *
    782782     * @ticket 16456
    783      */ 
     783     */
    784784    public function test_skip_input_elements() {
    785785        $str = 'Username: <input type="text" id="username" name="username" /><br />Password: <input type="password" id="password1" name="password1" />';
     
    14581458
    14591459        $text = 'This text contains<style>#css { width:expression(alert("css")) }</style>. It should go.';
    1460         $this->assertEquals( $trimmed, wp_trim_words( $text ) );       
     1460        $this->assertEquals( $trimmed, wp_trim_words( $text ) );
    14611461    }
    14621462
     
    15261526        // acute accent
    15271527        $this->assertEquals( 'AaAaEeOoOoUu', remove_accents( 'ẤấẮắẾếỐốỚớỨứ' ) );
    1528         // dot below 
     1528        // dot below
    15291529        $this->assertEquals( 'AaAaAaEeEeIiOoOoOoUuUuYy', remove_accents( 'ẠạẬậẶặẸẹỆệỊịỌọỘộỢợỤụỰựỴỵ' ) );
    15301530    }
Note: See TracChangeset for help on using the changeset viewer.