From ee1360fb0d4387305618d5fc61cd97449b546785 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 25 Feb 2005 09:10:39 +0000 Subject: [PATCH] Some [[media:]] link tests --- maintenance/parserTests.txt | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 3dfb9f0320..648ffb7cf4 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1565,6 +1565,18 @@ Image caption containing another image !! end +!! test +Image caption containing a newline +!! input +[[Image:Foobar.jpg|This +*is some text]] +!! result +

This *is some text +

+!!end + + + ### ### Subpages ### @@ -1926,6 +1938,34 @@ I always thought &xacute; was a cute letter. !! end +!! test +Media link +!! input +[[Media:Foobar.jpg]] +!! result +

Media:Foobar.jpg +

+!! end + +!! test +Media link with text +!! input +[[Media:Foobar.jpg|A neat file to look at]] +!! result +

A neat file to look at +

+!! end + +# FIXME: this is still bad HTML tag nesting +!! test +Media link with nasty text +!! input +[[Media:Foobar.jpg|Safe Link
" onmouseover="alert(document.cookie)" onfoo="
]] +!! result +

Safe Link

" onmouseover="alert(document.cookie) onfoo="
+

+!! end + TODO: more images more tables -- 2.20.1