Changeset 313 in tests
- Timestamp:
- 10/31/2010 08:50:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_formatting.php
r312 r313 72 72 'There was a spoon named http://wordpress.org;', 73 73 'There was a spoon named http://wordpress.org:', 74 'There was a spoon named (http://wordpress.org)' 74 'There was a spoon named (http://wordpress.org)', 75 'There was a spoon named (http://wordpress.org)x', 75 76 ); 76 77 $urls_expected = array( … … 80 81 'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>;', 81 82 'There was a spoon named <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>:', 82 'There was a spoon named (<a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>)' 83 'There was a spoon named (<a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>)', 84 'There was a spoon named (<a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>)x', 83 85 ); 84 86 … … 162 164 'blah http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software) blah', 163 165 'blah (http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)) blah', 164 ); 166 'blah blah blah http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software) blah blah', 167 'blah blah blah http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)) blah blah', 168 'blah blah (http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)) blah blah', 169 'blah blah http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software).) blah blah', 170 'blah blah http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software).)moreurl blah blah', 171 ); 165 172 $urls_expected = array( 166 173 '<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>', … … 168 175 'blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a> blah', 169 176 'blah (<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah', 177 'blah blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a> blah blah', 178 'blah blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah blah', 179 'blah blah (<a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>) blah blah', 180 'blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>.) blah blah', 181 'blah blah <a href="http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)" rel="nofollow">http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)</a>.)moreurl blah blah', 170 182 ); 171 183 foreach ($urls_before as $key => $url) { … … 192 204 } 193 205 206 function test_twitter_hash_bang() { 207 $this->knownWPBug(14993); 208 $urls_before = array( 209 'http://twitter.com/#!/wordpress/status/25907440233', 210 ); 211 $urls_expected = array( 212 '<a href="http://twitter.com/#!/wordpress/status/25907440233" rel="nofollow">http://twitter.com/#!/wordpress/status/25907440233</a>', 213 ); 214 foreach ($urls_before as $key => $url) { 215 $this->assertEquals($urls_expected[$key], make_clickable($url)); 216 } 217 } 194 218 } 195 219
Note: See TracChangeset
for help on using the changeset viewer.