Add test for bug where variant was persisting when it shouldn't
authorMark A. Hershberger <mah@users.mediawiki.org>
Mon, 11 Jan 2010 06:17:50 +0000 (06:17 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Mon, 11 Jan 2010 06:17:50 +0000 (06:17 +0000)
maintenance/parserTests.txt

index 238abe3..fad5a39 100644 (file)
@@ -6938,6 +6938,18 @@ Taiwan
 </p>
 !! end
 
+!! test
+Adding explicit conversion rule for title (T flag)
+!! options
+language=zh variant=zh showtitle
+!! input
+Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
+!! result
+China
+<p>Should be stripped!
+</p>
+!! end
+
 !! test
 Raw output of variant escape tags (R flag)
 !! options
@@ -7514,30 +7526,6 @@ title=[[Main Page]]
 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
 !! end
 
-!! test
-Adding explicit conversion rule for title (T flag)
-!! options
-language=zh variant=zh-tw showtitle **** disabled (for now) because I think it uncovers a bug and I want a reminder
-!! input
-Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
-!! result
-Taiwan
-<p>Should be stripped!
-</p>
-!! end
-
-!! test
-Adding explicit conversion rule for title (T flag)
-!! options
-language=zh variant=zh showtitle **** disabled (for now) because I think it uncovers a bug and I want a reminder
-!! input
-Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
-!! result
-China
-<p>Should be stripped!
-</p>
-!! end
-
 TODO:
 more images
 more tables