r5486 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5485‎ | r5486 | r5487 >
Date:09:49, 25 September 2004
Author:vibber
Status:old
Tags:
Comment:
Set wgUploadPath for tests so we don't all have to be using Wil's filesystem layout. ;)
Modified paths:
  • /trunk/phase3/maintenance/parserTests.php (modified) (history)
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -1157,7 +1157,7 @@
11581158 !! input
11591159 [[Image: test]]
11601160 !! result
1161 -<p><a href="https://www.mediawiki.org/wiki/Image:Test" class="image" title="Image: test"><img src="/%7Ewmahan/phase3/images/0/0c/Test" alt="Image: test" /></a>
 1161+<p><a href="https://www.mediawiki.org/wiki/Image:Test" class="image" title="Image: test"><img src="/images/0/0c/Test" alt="Image: test" /></a>
11621162 </p>
11631163 !! end
11641164
@@ -1166,7 +1166,7 @@
11671167 !! input
11681168 [[Image:test|right]]
11691169 !! result
1170 -<div class="floatright"><span><a href="https://www.mediawiki.org/wiki/Image:Test" class="image" title="right"><img src="/%7Ewmahan/phase3/images/0/0c/Test" alt="right" /></a></span></div>
 1170+<div class="floatright"><span><a href="https://www.mediawiki.org/wiki/Image:Test" class="image" title="right"><img src="/images/0/0c/Test" alt="right" /></a></span></div>
11711171
11721172 !! end
11731173
@@ -1175,7 +1175,7 @@
11761176 !! input
11771177 [[Image:test|right|Caption text]]
11781178 !! result
1179 -<div class="floatright"><span><a href="https://www.mediawiki.org/wiki/Image:Test" class="image" title="Caption text"><img src="/%7Ewmahan/phase3/images/0/0c/Test" alt="Caption text" /></a></span></div>
 1179+<div class="floatright"><span><a href="https://www.mediawiki.org/wiki/Image:Test" class="image" title="Caption text"><img src="/images/0/0c/Test" alt="Caption text" /></a></span></div>
11801180
11811181 !! end
11821182
@@ -1184,7 +1184,7 @@
11851185 !! input
11861186 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
11871187 !! result
1188 -<div class="thumb tleft"><div style="width:202px;"><a href="https://www.mediawiki.org/wiki/Image:Foobar.jpg" class="internal" title="This is a test image "><img src="/%7Ewmahan/phase3/images/3/3a/Foobar.jpg" alt="This is a test image " width="200" height="200" /></a> <div class="thumbcaption" >This is a test image <a href="https://www.mediawiki.org/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
 1188+<div class="thumb tleft"><div style="width:202px;"><a href="https://www.mediawiki.org/wiki/Image:Foobar.jpg" class="internal" title="This is a test image "><img src="/images/3/3a/Foobar.jpg" alt="This is a test image " width="200" height="200" /></a> <div class="thumbcaption" >This is a test image <a href="https://www.mediawiki.org/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
11891189
11901190 !! end
11911191
Index: trunk/phase3/maintenance/parserTests.php
@@ -257,6 +257,7 @@
258258 'wgScript' => '/index.php',
259259 'wgScriptPath' => '/',
260260 'wgArticlePath' => '/wiki/$1',
 261+ 'wgUploadPath' => '/images',
261262 'wgSitename' => 'MediaWiki',
262263 'wgLanguageCode' => 'en',
263264 'wgUseLatin1' => false,

Status & tagging log