dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90cd6d2
)
Additional test for {{PAGELANGUAGE}} magic word
author
TTO
<at.light@live.com.au>
Sat, 7 Jan 2017 02:27:23 +0000
(
02:27
+0000)
committer
Umherirrender
<umherirrender_de.wp@web.de>
Sat, 7 Jan 2017 11:28:12 +0000
(11:28 +0000)
Make sure it returns the default content language on pages where the
language is not explicitly set.
Bug: T59603
Change-Id: I7b1437bf1650166c8be77e5bd84181c577961f27
tests/parser/parserTests.txt
patch
|
blob
|
history
diff --git
a/tests/parser/parserTests.txt
b/tests/parser/parserTests.txt
index
16d724d
..
3853a12
100644
(file)
--- a/
tests/parser/parserTests.txt
+++ b/
tests/parser/parserTests.txt
@@
-10300,6
+10300,15
@@
language=fr
</p>
!! end
+!! test
+Magic Word: {{PAGELANGUAGE}} on a page with no explicitly set language
+!! wikitext
+{{PAGELANGUAGE}}
+!! html
+<p>en
+</p>
+!! end
+
!! test
Case-sensitive magic words, when cased differently, should just be template transclusions
!! wikitext