From: Ilmari Karonen
Date: Sun, 14 Dec 2008 10:11:53 +0000 (+0000)
Subject: better parser test coverage of {{ns:}}
X-Git-Tag: 1.31.0-rc.0~43973
X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=1b6799be6913b9885c7bf248b27e1ff115ee3bea;p=lhc%2Fweb%2Fwiklou.git
better parser test coverage of {{ns:}}
---
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index a81ba9595f..40377ffa87 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