From a833bec8c49ea455816cac37e667203a0726b495 Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Mon, 13 Nov 2006 09:33:10 +0000 Subject: [PATCH] * Sync parserTests expected image results with r17524. * On further consideration, the current "HTML Hex character encoding" behaviour is fine, and there's no real reason to convert HTML Hex encodings to ASCII. * However the handling of "|" chars in external URLs in image comments will leave an unmatched tag. --- maintenance/parserTests.txt | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index e93bbfd550..4eab18b19d 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -4621,7 +4621,7 @@ Fuzz testing: image with bogus manual thumbnail !!input [[Image:foobar.jpg|thumbnail= ]] !!result -
Enlarge
+
Enlarge
!!end @@ -5732,11 +5732,11 @@ image4 |300px| centre !! end !! test -TODO: HTML Hex character encoding. +HTML Hex character encoding (spells the word "JavaScript") !! input JavaScript !! result -

JavaScript +

JavaScript

!! end @@ -5860,6 +5860,18 @@ TODO: dt/dd/dl test !!end + +# Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "" tag. +!! test +TODO: Images with the "|" character in the comment +!! input +[[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]] +!! result +
An external URL
Enlarge
An external URL
+ +!!end + + # # # -- 2.20.1