Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -3362,6 +3362,28 @@ |
3363 | 3363 | !! end |
3364 | 3364 | |
3365 | 3365 | !! test |
| 3366 | +Image with link parameter, wgExternalLinkTarget |
| 3367 | +!! input |
| 3368 | +[[Image:foobar.jpg|link=http://example.com/]] |
| 3369 | +!! config |
| 3370 | +wgExternalLinkTarget='foobar' |
| 3371 | +!! result |
| 3372 | +<p><a href="http://example.com/" target="foobar"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> |
| 3373 | +</p> |
| 3374 | +!! end |
| 3375 | + |
| 3376 | +!! test |
| 3377 | +Image with link parameter, wgExternalLinkTarget, unnamed parameter |
| 3378 | +!! input |
| 3379 | +[[Image:foobar.jpg|link=http://example.com/|Title]] |
| 3380 | +!! config |
| 3381 | +wgExternalLinkTarget='foobar' |
| 3382 | +!! result |
| 3383 | +<p><a href="http://example.com/" title="Title" target="foobar"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> |
| 3384 | +</p> |
| 3385 | +!! end |
| 3386 | + |
| 3387 | +!! test |
3366 | 3388 | Image with empty link parameter |
3367 | 3389 | !! input |
3368 | 3390 | [[Image:foobar.jpg|link=]] |