Make WordPress Core

Changeset 894 in tests for trunk/tests/test_post_filtering.php


Ignore:
Timestamp:
07/09/2012 03:32:24 PM (14 years ago)
Author:
nacin
Message:

Convert knownWPBug and knownUTBug to @ticket annotations. fixes #102.

Allows for an extra description to be included with the annotation,
which will be passed to markTestSkipped().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_post_filtering.php

    r877 r894  
    7171        }
    7272
    73         // test kses bug. xhtml does not require space before closing
    74         // empty element
     73        /**
     74         * test kses bug. xhtml does not require space before closing empty element
     75         * @ticket 12394
     76         */
    7577        function test_post_content_xhtml_empty_elem() {
    76                 $this->knownWPBug( 12394 );
    7778                $content = <<<EOF
    7879<img src='foo' width='500' height='300'/>
     
    8990        }
    9091
    91         // make sure unbalanced tags are fixed when they span a --more-- tag
     92        /**
     93         * make sure unbalanced tags are fixed when they span a --more-- tag
     94         * @ticket 6297
     95         */
    9296        function test_post_content_unbalanced_more() {
    93                 $this->knownWPBug(6297);
    94 
    9597                $content = <<<EOF
    9698<em>some text<!--more-->
     
    109111        }
    110112
    111         // make sure unbalanced tags are fixed when they span a --nextpage-- tag
     113        /**
     114         * make sure unbalanced tags are fixed when they span a --nextpage-- tag
     115         * @ticket 6297
     116         */
    112117        function test_post_content_unbalanced_nextpage() {
    113                 $this->knownWPBug(6297);
    114 
    115118                $content = <<<EOF
    116119<em>some text<!--nextpage-->
     
    129132        }
    130133
    131         // make sure unbalanced tags are fixed when they span both --more-- and --nextpage-- tags (in that order)
     134        /**
     135         * make sure unbalanced tags are fixed when they span both --more-- and --nextpage-- tags (in that order)
     136         * @ticket 6297
     137         */
    132138        function test_post_content_unbalanced_more_nextpage() {
    133                 $this->knownWPBug(6297);
    134 
    135139                $content = <<<EOF
    136140<em>some text<!--more-->
     
    157161        }
    158162
    159         // make sure unbalanced tags are fixed when they span both --nextpage-- and --more-- tags (in that order)
     163        /**
     164         * make sure unbalanced tags are fixed when they span both --nextpage-- and --more-- tags (in that order)
     165         * @ticket 6297
     166         */
    160167        function test_post_content_unbalanced_nextpage_more() {
    161                 $this->knownWPBug(6297);
    162 
    163168                $content = <<<EOF
    164169<em>some text<!--nextpage-->
Note: See TracChangeset for help on using the changeset viewer.