From 2566c36e367aefa3e0ef3dca2d085224d6f34f7f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 21 Aug 2005 00:27:52 +0000 Subject: [PATCH] Change parser tests to use a remote $wgUploadPath; this should catch some bugs that previously were not (eg bug 3210) --- maintenance/parserTests.inc | 2 +- maintenance/parserTests.txt | 44 ++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index c41f99fb5d..3756de1ba4 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -286,7 +286,7 @@ class ParserTest { 'wgScript' => '/index.php', 'wgScriptPath' => '/', 'wgArticlePath' => '/wiki/$1', - 'wgUploadPath' => '/images', + 'wgUploadPath' => 'http://example.com/images', 'wgUploadDirectory' => $this->uploadDir, 'wgStyleSheetPath' => '/skins', 'wgSitename' => 'MediaWiki', diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 3c18bf5dc2..cc04652b55 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1686,7 +1686,7 @@ Simple image !! input [[Image:foobar.jpg]] !! result -

Image:foobar.jpg +

Image:foobar.jpg

!! end @@ -1695,7 +1695,7 @@ Right-aligned image !! input [[Image:foobar.jpg|right]] !! result -
+
!! end @@ -1704,7 +1704,7 @@ Image with caption !! input [[Image:foobar.jpg|right|Caption text]] !! result -
Caption text
+
Caption text
!! end @@ -1713,7 +1713,7 @@ Image with frame and link !! input [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]] !! result -
This is a test image Main Page
This is a test image Main Page
+
This is a test image Main Page
This is a test image Main Page
!! end @@ -1731,7 +1731,7 @@ Frameless image caption with a free URL !! input [[Image:foobar.jpg|http://example.com]] !! result -

http://example.com +

http://example.com

!! end @@ -1740,7 +1740,7 @@ Thumbnail image caption with a free URL !! input [[Image:foobar.jpg|thumb|http://example.com]] !! result -
http://example.com
+
http://example.com
!! end @@ -1749,7 +1749,7 @@ BUG 1887: A ISBN with a thumbnail !! input [[Image:foobar.jpg|thumb|ISBN 12354]] !! result -
ISBN 12354
+
ISBN 12354
!! end !! test @@ -1757,7 +1757,7 @@ BUG 1887: A with a thumbnail !! input [[Image:foobar.jpg|thumb|2+2]] !! result -
2+2
Enlarge
<math>2+2<math>
+
2+2
Enlarge
<math>2+2<math>
!! end # Pending resolution to bug 368 @@ -1766,7 +1766,7 @@ BUG 648: Frameless image caption with a link !! input [[Image:foobar.jpg|text with a [[link]] in it]] !! result -

text with a link in it +

text with a link in it

!! end @@ -1775,7 +1775,7 @@ BUG 648: Frameless image caption with a link (suffix) !! input [[Image:foobar.jpg|text with a [[link]]foo in it]] !! result -

text with a linkfoo in it +

text with a linkfoo in it

!! end @@ -1784,7 +1784,7 @@ BUG 648: Frameless image caption with an interwiki link !! input [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]] !! result -

text with a MeatBall:Link in it +

text with a MeatBall:Link in it

!! end @@ -1793,7 +1793,7 @@ BUG 648: Frameless image caption with a piped interwiki link !! input [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]] !! result -

text with a link in it +

text with a link in it

!! end @@ -1802,7 +1802,7 @@ Escape HTML special chars in image alt text !! input [[Image:foobar.jpg|& < > "]] !! result -

& < > " +

& < > "

!! end @@ -1811,7 +1811,7 @@ BUG 499: Alt text should have Ӓ, not &1234; !! input [[Image:foobar.jpg|♀]] !! result -

♀ +

♀

!! end @@ -1829,7 +1829,7 @@ Image caption containing another image !! input [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]] !! result -
This is a caption with another Image:Icon.png inside it!
Enlarge
This is a caption with another Image:Icon.png inside it!
+
This is a caption with another Image:Icon.png inside it!
Enlarge
This is a caption with another Image:Icon.png inside it!
!! end @@ -1839,7 +1839,7 @@ Image caption containing a newline [[Image:Foobar.jpg|This *is some text]] !! result -

This *is some text +

This *is some text

!!end @@ -1849,7 +1849,7 @@ Bug 3090: External links other than http: in image captions !! input [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]] !! result -
This caption has irc and Secure ext links in it.
Enlarge
This caption has irc and Secure ext links in it.
+
This caption has irc and Secure ext links in it.
Enlarge
This caption has irc and Secure ext links in it.
!! end @@ -2148,7 +2148,7 @@ BUG 1219 URL next to image (good) !! input http://example.com [[Image:foobar.jpg]] !! result -

http://example.com Image:foobar.jpg +

http://example.com Image:foobar.jpg

!!end @@ -2157,7 +2157,7 @@ BUG 1219 URL next to image (broken) !! input http://example.com[[Image:foobar.jpg]] !! result -

http://example.comImage:foobar.jpg +

http://example.comImage:foobar.jpg

!!end @@ -2306,7 +2306,7 @@ Media link !! input [[Media:Foobar.jpg]] !! result -

Media:Foobar.jpg +

Media:Foobar.jpg

!! end @@ -2315,7 +2315,7 @@ Media link with text !! input [[Media:Foobar.jpg|A neat file to look at]] !! result -

A neat file to look at +

A neat file to look at

!! end @@ -2325,7 +2325,7 @@ Media link with nasty text !! input [[Media:Foobar.jpg|Safe Link
" onmouseover="alert(document.cookie)" onfoo="
]] !! result -

Safe Link

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

Safe Link

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

!! end -- 2.20.1