1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
"description": "Test `Special:Browse` output preferred label (`wgContLang=en`, `wgLang=es`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "SomeProperty",
"contents": "[[Has type::Text]] [[Has preferred property label::Label with spaces@es]]"
},
{
"page": "Example/S0013/1",
"contents": "[[SomeProperty::abc]]"
}
],
"tests": [
{
"type": "special",
"about": "#0 verify preferred label display",
"special-page": {
"page": "Browse",
"query-parameters": "Example/S0013/1",
"request-parameters": {
"output": "legacy"
}
},
"assert-output": {
"to-contain": [
">Label with spaces</a> <span title=\"SomeProperty\"><sup>ᵖ</sup>"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "es",
"smwgPageSpecialProperties": [
"_MDAT"
],
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|