Changeset 29781 for trunk/tests/phpunit/tests/formatting/WPTexturize.php
- Timestamp:
- 09/29/2014 04:06:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/WPTexturize.php
r29748 r29781 1189 1189 return array( 1190 1190 array( 1191 '[ ... ]', 1192 '[ … ]', 1193 ), 1194 array( 1191 1195 '[ is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]', 1192 1196 '[ is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]', 1193 1197 ), 1194 1198 array( 1199 '[is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]', // HTML corruption is a known bug. See tickets #12690 and #29557. 1200 '[is it wise to <a title="allow user content ] here? hmm”> maybe </a> ]', 1201 ), 1202 array( 1203 '[caption - is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]', 1204 '[caption - is it wise to <a title="allow user content ] here? hmm”> maybe </a> ]', 1205 ), 1206 array( 1195 1207 '[ photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy </a> ]', 1196 1208 '[ photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy </a> ]', 1197 1209 ), 1198 1210 array( 1211 '[photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy </a>]', 1212 '[photos by <a href="http://example.com/?a[]=1&a[]=2"> this guy </a>]', 1213 ), 1214 array( 1199 1215 '[gallery ...]', 1200 1216 '[gallery ...]', … … 1213 1229 ), 1214 1230 array( 1215 '[...]...[/...]', // These are potentially usable shortcodes.1216 '[…]…[/…]',1217 ),1218 array(1219 1231 '[[gallery]]...[[/gallery]]', // Shortcode parsing will ignore the inner ]...[ part and treat this as a single escaped shortcode. 1220 1232 '[[gallery]]…[[/gallery]]', … … 1225 1237 ), 1226 1238 array( 1227 '[gal>ery ...]',1228 '[gal>ery …]',1229 ),1230 array(1231 1239 '[gallery ...', 1232 1240 '[gallery …', … … 1301 1309 ), 1302 1310 array( 1303 '<!-- ... -- >', 1304 '<!-- ... -- >', 1311 '<!-- ... -- > ...', 1312 '<!-- ... -- > ...', 1313 ), 1314 array( 1315 '<!-- ...', // An unclosed comment is still a comment. 1316 '<!-- ...', 1317 ), 1318 array( 1319 'a<!-->b', // Browsers seem to allow this. 1320 'a<!-->b', 1321 ), 1322 array( 1323 'a<!--->b', 1324 'a<!--->b', 1325 ), 1326 array( 1327 'a<!---->b', 1328 'a<!---->b', 1329 ), 1330 array( 1331 'a<!----->b', 1332 'a<!----->b', 1333 ), 1334 array( 1335 'a<!-- c --->b', 1336 'a<!-- c --->b', 1337 ), 1338 array( 1339 'a<!-- c -- d -->b', 1340 'a<!-- c -- d -->b', 1341 ), 1342 array( 1343 'a<!-- <!-- c --> -->b<!-- close -->', 1344 'a<!-- <!-- c --> –>b<!-- close -->', 1305 1345 ), 1306 1346 array( … … 1728 1768 array( 1729 1769 '[code ...]...[/code]', // code is not a registered shortcode. 1730 '[code …]…[/code]',1770 '[code ...]...[/code]', 1731 1771 ), 1732 1772 array( 1733 1773 '[hello ...]...[/hello]', // hello is not a registered shortcode. 1734 '[hello …]…[/hello]', 1774 '[hello ...]…[/hello]', 1775 ), 1776 array( 1777 '[...]...[/...]', // These are potentially usable shortcodes. 1778 '[...]…[/...]', 1779 ), 1780 array( 1781 '[gal>ery ...]', 1782 '[gal>ery ...]', 1783 ), 1784 array( 1785 '[randomthing param="test"]', 1786 '[randomthing param="test"]', 1735 1787 ), 1736 1788 array(
Note: See TracChangeset
for help on using the changeset viewer.