From 40c9b03bb4a0a3234985213df5adaea743820589 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 1 Feb 2010 04:59:59 +0000 Subject: [PATCH] follow up r61775 (reapply): Fix parsertests so that they work even when server-side thumbnailing isn't configured. --- maintenance/parserTests.inc | 1 + maintenance/parserTests.txt | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index a69a5c34e3..8624dc64cb 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -640,6 +640,7 @@ class ParserTest { 'wgNoFollowLinks' => true, 'wgNoFollowDomainExceptions' => array(), 'wgThumbnailScriptPath' => false, + 'wgUseImageResize' => false, 'wgUseTeX' => false, 'wgLocaltimezone' => 'UTC', 'wgAllowExternalImages' => true, diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index b00df4da86..2f9b9e0e30 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -3283,7 +3283,7 @@ Thumbnail image caption with a free URL !! input [[Image:foobar.jpg|thumb|http://example.com]] !! result -
+
!! end @@ -3292,7 +3292,7 @@ Thumbnail image caption with a free URL and explicit alt !! input [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]] !! result -
+
!! end @@ -3301,7 +3301,7 @@ BUG 1887: A ISBN with a thumbnail !! input [[Image:foobar.jpg|thumb|ISBN 1235467890]] !! result -
+
!! end @@ -3310,7 +3310,7 @@ BUG 1887: A RFC with a thumbnail !! input [[Image:foobar.jpg|thumb|This is RFC 12354]] !! result -
This is RFC 12354
+
This is RFC 12354
!! end @@ -3319,7 +3319,7 @@ BUG 1887: A mailto link with a thumbnail !! input [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]] !! result -
+
!! end @@ -3329,7 +3329,7 @@ so math is not stripped and turns up as escaped <math> tags. !! input [[Image:foobar.jpg|thumb|2+2]] !! result -
<math>2+2</math>
+
<math>2+2</math>
!! end @@ -3340,7 +3340,7 @@ math !! input [[Image:foobar.jpg|thumb|2+2]] !! result -
2 + 2
+
2 + 2
!! end @@ -3413,7 +3413,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 File:Icon.png inside it!
+
This is a caption with another File:Icon.png inside it!
!! end @@ -3433,7 +3433,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.
+
This caption has irc and Secure ext links in it.
!! end @@ -6381,7 +6381,7 @@ Width + Height sized image (using px) (height is ignored) !! input [[Image:foobar.jpg|640x480px]] !! result -

Foobar.jpg +

Foobar.jpg

!!end @@ -6390,7 +6390,7 @@ Width-sized image (using px, no following whitespace) !! input [[Image:foobar.jpg|640px]] !! result -

Foobar.jpg +

Foobar.jpg

!!end @@ -6399,7 +6399,7 @@ Width-sized image (using px, with following whitespace - test regression from r3 !! input [[Image:foobar.jpg|640px ]] !! result -

Foobar.jpg +

Foobar.jpg

!!end @@ -6408,7 +6408,7 @@ Width-sized image (using px, with preceding whitespace - test regression from r3 !! input [[Image:foobar.jpg| 640px]] !! result -

Foobar.jpg +

Foobar.jpg

!!end @@ -6450,7 +6450,7 @@ disabled !! input [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]] !! result -
An external URL
An external URL
+
An external URL
An external URL
!!end @@ -7351,7 +7351,7 @@ Free external link invading image caption !! input [[Image:Foobar.jpg|thumb|http://x|hello]] !! result -
hello
+
hello
!! end -- 2.20.1