Changeset 893 in tests for trunk/tests/test_shortcode.php
- Timestamp:
- 07/09/2012 02:38:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/test_shortcode.php
r881 r893 164 164 } 165 165 166 /** 167 * @ticket 6518 168 */ 166 169 function test_tag_escaped() { 167 $this->knownWPBug(6518);168 169 170 $out = do_shortcode('[[footag]] [[bartag foo="bar"]]'); 170 171 $this->assertEquals('[footag] [bartag foo="bar"]', $out); … … 236 237 } 237 238 238 //TODO Review this test as it may be incorrect 239 /** 240 * @ticket 6562 241 * 242 * @TODO Review this test as it may be incorrect 243 */ 239 244 function test_utf8_whitespace_1() { 240 // see http://trac.wordpress.org/ticket/6562241 $this->knownWPBug(6562);242 245 do_shortcode("[test-shortcode-tag foo=\"bar\" \x00\xA0baz=\"123\"]"); 243 246 $this->assertEquals( array('foo' => 'bar', 'baz' => '123'), $this->atts ); … … 245 248 } 246 249 247 //TODO Review this test as it may be incorrect 250 /** 251 * @ticket 6562 252 * 253 * @TODO Review this test as it may be incorrect 254 */ 248 255 function test_utf8_whitespace_2() { 249 // see http://trac.wordpress.org/ticket/6562250 $this->knownWPBug(6562);251 256 do_shortcode("[test-shortcode-tag foo=\"bar\" \x20\x0babc=\"def\"]"); 252 257 $this->assertEquals( array('foo' => 'bar', 'abc' => 'def'), $this->atts ); … … 264 269 } 265 270 271 /** 272 * @ticket 14050 273 */ 266 274 function test_multiple_shortcode_unautop() { 267 // see http://trac.wordpress.org/ticket/14050268 $this->knownWPBug(14050);269 275 // a blank line is added at the end, so test with it already there 270 276 $test_string = <<<EOF … … 278 284 } 279 285 286 /** 287 * @ticket 10326 288 */ 280 289 function test_strip_shortcodes() { 281 $this->knownWPBug( 10326 );282 290 $this->assertEquals('before', strip_shortcodes('before[gallery]')); 283 291 $this->assertEquals('after', strip_shortcodes('[gallery]after'));
Note: See TracChangeset
for help on using the changeset viewer.