Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -8142,6 +8142,16 @@ |
8143 | 8143 | !! end |
8144 | 8144 | |
8145 | 8145 | !! test |
| 8146 | +percent-encoding and + signs in comments (Bug 26410) |
| 8147 | +!! options |
| 8148 | +comment |
| 8149 | +!!input |
| 8150 | +[[ABC%33D% ++]] [[ABC%33D% ++|+%20]] |
| 8151 | +!! result |
| 8152 | +<a href="https://www.mediawiki.org/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="https://www.mediawiki.org/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a> |
| 8153 | +!! end |
| 8154 | + |
| 8155 | +!! test |
8146 | 8156 | Bad images - basic functionality |
8147 | 8157 | !! input |
8148 | 8158 | [[File:Bad.jpg]] |
— | — | @@ -8327,6 +8337,20 @@ |
8328 | 8338 | |
8329 | 8339 | !! end |
8330 | 8340 | |
| 8341 | +!! test |
| 8342 | +percent-encoding and + signs in internal links (Bug 26410) |
| 8343 | +!! input |
| 8344 | +[[User:+%]] [[Page+title%]] |
| 8345 | +[[%+]] [[%+|%20]] [[%+ ]] [[%+r]] |
| 8346 | +[[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]] |
| 8347 | +[[%33%45]] [[%33%45+]] |
| 8348 | +!! result |
| 8349 | +<p><a href="https://www.mediawiki.org/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="https://www.mediawiki.org/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a> |
| 8350 | +<a href="https://www.mediawiki.org/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="https://www.mediawiki.org/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="https://www.mediawiki.org/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="https://www.mediawiki.org/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a> |
| 8351 | +<a href="https://www.mediawiki.org/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="https://www.mediawiki.org/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="https://www.mediawiki.org/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a> |
| 8352 | +<a href="https://www.mediawiki.org/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="https://www.mediawiki.org/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a> |
| 8353 | +</p> |
| 8354 | +!! end |
8331 | 8355 | |
8332 | 8356 | TODO: |
8333 | 8357 | more images |