WordPress.org

Make WordPress Core

Changeset 207 in tests


Ignore:
Timestamp:
05/01/08 03:55:31 (6 years ago)
Author:
tellyworth
Message:

much simpler repro for #6888

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_post_output.php

    r206 r207  
    303303} 
    304304 
     305class WPTestAttributeColon extends _WPTestSinglePost { 
     306    function setUp() { 
     307 
     308        // http://bpr3.org/?p=87 
     309        // the title attribute should make it through unfiltered 
     310        $this->post_content =<<<EOF 
     311<span title="My friends: Alice, Bob and Carol">foo</span> 
     312 
     313EOF; 
     314 
     315        parent::setUp(); 
     316    } 
     317 
     318    function test_the_content() { 
     319        $this->_do_post(); 
     320        $expected =<<<EOF 
     321<p><span title="My friends: Alice, Bob and Carol">foo</span></p> 
     322 
     323EOF; 
     324 
     325        $this->assertEquals(strip_ws($expected), strip_ws(get_echo('the_content'))); 
     326    } 
     327} 
     328 
    305329?> 
Note: See TracChangeset for help on using the changeset viewer.