X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FparserTests.txt;h=c84e0e35cffbb5b196c45cbac2cbbbadd173e75c;hb=5c58613f4d77fa214830caced95948e057c0c69e;hp=a81ba9595fc4ae128889f51f6d55c75771713bbc;hpb=36f42c9b155ba66bac89ef639cdac7939cff0102;p=lhc%2Fweb%2Fwiklou.git
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index a81ba9595f..c84e0e35cf 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -2096,7 +2096,7 @@ Namespace -1 {{ns:-1}}
!! end
!! test
-Namespace Project {{ns:User}}
+Namespace User {{ns:User}}
!! input
{{ns:User}}
!! result
@@ -2104,6 +2104,64 @@ Namespace Project {{ns:User}}
!! end
+!! test
+Namespace User talk {{ns:User_talk}}
+!! input
+{{ns:User_talk}}
+!! result
+User talk
+
+!! end
+
+!! test
+Namespace User talk {{ns:uSeR tAlK}}
+!! input
+{{ns:uSeR tAlK}}
+!! result
+User talk
+
+!! end
+
+!! test
+Namespace File {{ns:File}}
+!! input
+{{ns:File}}
+!! result
+File
+
+!! end
+
+!! test
+Namespace File {{ns:Image}}
+!! input
+{{ns:Image}}
+!! result
+File
+
+!! end
+
+!! test
+Namespace (lang=de) Benutzer {{ns:User}}
+!! options
+language=de
+!! input
+{{ns:User}}
+!! result
+Benutzer
+
+!! end
+
+!! test
+Namespace (lang=de) Benutzer Diskussion {{ns:3}}
+!! options
+language=de
+!! input
+{{ns:3}}
+!! result
+Benutzer Diskussion
+
+!! end
+
###
### Magic links
@@ -2149,7 +2207,7 @@ PMID 1234
####
!! test
-Nonexistant template
+Nonexistent template
!! input
{{thistemplatedoesnotexist}}
!! result
@@ -2623,8 +2681,8 @@ Bug 6563: Edit link generation for section shown by
!! input
{{includeonly section}}
!! result
-[edit] Includeonly section
-[edit] Section T-1
+[edit] Includeonly section
+[edit] Section T-1
!! end
@@ -2650,7 +2708,7 @@ Bug 6563: Edit link generation for section suppressed by
==Section 1==
!! result
-[edit] Section 1
+[edit] Section 1
!! end
@@ -2691,7 +2749,7 @@ PST
!! end
!! test
-pre-save transform: nonexistant template
+pre-save transform: nonexistent template
!! options
PST
!! input
@@ -3465,13 +3523,13 @@ More
===Smaller headline===
Blah blah
!! result
-[edit] Headline 1
+[edit] Headline 1
Some text
-[edit] Headline 2
+[edit] Headline 2
More
-[edit] Smaller headline
+[edit] Smaller headline
Blah blah
!! end
@@ -3510,14 +3568,14 @@ Some text
-[edit] Headline 1
-[edit] Subheadline 1
-[edit] Skipping a level
-[edit] Skipping a level
-[edit] Headline 2
+[edit] Headline 1
+[edit] Subheadline 1
+[edit] Skipping a level
+[edit] Skipping a level
+[edit] Headline 2
Some text
-[edit] Another headline
+[edit] Another headline
!! end
@@ -3565,16 +3623,16 @@ Handling of sections up to level 6 and beyond
-[edit] Level 1 Heading
-[edit] Level 2 Heading
-[edit] Level 3 Heading
-[edit] Level 4 Heading
-[edit] Level 5 Heading
-[edit] Level 6 Heading
-[edit] = Level 7 Heading=
-[edit] == Level 8 Heading==
-[edit] === Level 9 Heading===
-[edit] ==== Level 10 Heading====
+[edit] Level 1 Heading
+[edit] Level 2 Heading
+[edit] Level 3 Heading
+[edit] Level 4 Heading
+[edit] Level 5 Heading
+[edit] Level 6 Heading
+[edit] = Level 7 Heading=
+[edit] == Level 8 Heading==
+[edit] === Level 9 Heading===
+[edit] ==== Level 10 Heading====
!! end
@@ -3607,12 +3665,12 @@ TOC regression (bug 9764)
-[edit] title 1
-[edit] title 1.1
-[edit] title 1.1.1
-[edit] title 1.2
-[edit] title 2
-[edit] title 2.1
+[edit] title 1
+[edit] title 1.1
+[edit] title 1.1.1
+[edit] title 1.2
+[edit] title 2
+[edit] title 2.1
!! end
@@ -3643,12 +3701,12 @@ wgMaxTocLevel=3
-[edit] title 1
-[edit] title 1.1
-[edit] title 1.1.1
-[edit] title 1.2
-[edit] title 2
-[edit] title 2.1
+[edit] title 1
+[edit] title 1.1
+[edit] title 1.1.1
+[edit] title 1.2
+[edit] title 2
+[edit] title 2.1
!! end
@@ -3658,8 +3716,8 @@ Resolving duplicate section names
== Foo bar ==
== Foo bar ==
!! result
-[edit] Foo bar
-[edit] Foo bar
+[edit] Foo bar
+[edit] Foo bar
!! end
@@ -3669,8 +3727,8 @@ Resolving duplicate section names with differing case (bug 10721)
== Foo bar ==
== Foo Bar ==
!! result
-[edit] Foo bar
-[edit] Foo Bar
+[edit] Foo bar
+[edit] Foo Bar
!! end
@@ -3689,10 +3747,10 @@ __NOTOC__
{{sections}}
==Section 4==
!! result
-[edit] Section 0
-[edit] Section 1
-[edit] Section 2
-[edit] Section 4
+[edit] Section 0
+[edit] Section 1
+[edit] Section 2
+[edit] Section 4
!! end
@@ -3703,8 +3761,8 @@ __NOEDITSECTION__
==Section 1==
==Section 2==
!! result
- Section 1
- Section 2
+ Section 1
+ Section 2
!! end
@@ -3713,7 +3771,7 @@ Link inside a section heading
!! input
==Section with a [[Main Page|link]] in it==
!! result
-[edit] Section with a link in it
+[edit] Section with a link in it
!! end
@@ -3735,9 +3793,9 @@ __TOC__
2 title 2
-[edit] title 1
-[edit] title 1.1
-[edit] title 2
+[edit] title 1
+[edit] title 1.1
+[edit] title 2
!! end
@@ -4905,7 +4963,7 @@ Fuzz testing: Parser14
== onmouseover= ==
http://__TOC__
!! result
-[edit] onmouseover=
+[edit] onmouseover=
http://Contents
- 1 onmouseover=
@@ -4920,7 +4978,7 @@ Fuzz testing: Parser14-table
==a==
{| STYLE=__TOC__
!! result
-
+
@@ -6503,7 +6561,7 @@ Inclusion of !userCanEdit() content
!! input
{{MediaWiki:Fake}}
!! result
-[edit] header
+[edit] header
!! end
@@ -6534,12 +6592,12 @@ Out-of-order TOC heading levels
|
-
-
-
-
-
-
+
+
+
+
+
+
!! end
@@ -6785,7 +6843,7 @@ language=sr variant=sr-ec
!! input
== -{Naslov}- ==
!! result
-
+
!! end
@@ -6924,7 +6982,7 @@ Morwen/13: Unclosed link followed by heading
!! result
[[link
-[edit] heading
+[edit] heading
!! end
@@ -6936,7 +6994,7 @@ HHP2.1: Heuristics for headings in preprocessor parenthetical structures
!! result
{{foo|
- heading
+ heading
!! end
@@ -6948,7 +7006,7 @@ HHP2.2: Heuristics for headings in preprocessor parenthetical structures
!! result
{{foo|
-[edit] heading
+[edit] heading
!! end