From: Brion Vibber Date: Sat, 25 Sep 2004 09:49:04 +0000 (+0000) Subject: Set wgUploadPath for tests so we don't all have to be using Wil's filesystem layout. ;) X-Git-Tag: 1.5.0alpha1~1804 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=9f87d33e179a6dac83c65c508865a4be5254124b;p=lhc%2Fweb%2Fwiklou.git Set wgUploadPath for tests so we don't all have to be using Wil's filesystem layout. ;) --- diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index b19cf45d8e..6394bae214 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -257,6 +257,7 @@ class ParserTest { 'wgScript' => '/index.php', 'wgScriptPath' => '/', 'wgArticlePath' => '/wiki/$1', + 'wgUploadPath' => '/images', 'wgSitename' => 'MediaWiki', 'wgLanguageCode' => 'en', 'wgUseLatin1' => false, diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 59a69f1841..6ebdeea1ca 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1157,7 +1157,7 @@ Simple image !! input [[Image: test]] !! result -

Image: test +

Image: test

!! end @@ -1166,7 +1166,7 @@ Right-aligned image !! input [[Image:test|right]] !! result -
right
+
right
!! end @@ -1175,7 +1175,7 @@ Image with caption !! input [[Image:test|right|Caption text]] !! result -
Caption text
+
Caption text
!! end @@ -1184,7 +1184,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
This is a test image Main Page
+
This is a test image
This is a test image Main Page
!! end