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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
{
"description": "Test in-text annotation on `_tem`/ `_num` with different page content language (#1591, `wgContLang=es`, `wgLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has temperature",
"contents": "[[Has type::Temperature]]"
},
{
"contentlanguage": "fr",
"page": "Example/P0425/1",
"contents": "[[Has temperature::310.928 K]]"
},
{
"contentlanguage": "en",
"page": "Example/P0425/2",
"contents": "[[Has temperature::310.928 K]]"
},
{
"contentlanguage": "fr",
"page": "Example/P0425/3",
"contents": "[[Has temperature::310,928 K]]"
}
],
"tests": [
{
"type": "parser",
"about": "#0 page content language FR and . do not match, uses `en` as display language",
"subject": "Example/P0425/1",
"assert-output": {
"to-contain": [
"<span class=\"smwttcontent\">\".928K\" is not declared as a valid unit of measurement for this property.</span>"
]
}
},
{
"type": "parser",
"about": "#1 page content language EN and . do match",
"subject": "Example/P0425/2",
"assert-output": {
"to-contain": [
"<span class=\"smwtext\">310.928 K</span><span class=\"smwttcontent\">37.778 °C <br />100 °F <br />559.67 °R <br /></span></span>"
]
}
},
{
"type": "parser",
"about": "#2 page content language FR and , do match",
"subject": "Example/P0425/3",
"assert-output": {
"to-contain": [
"<span class=\"smwtext\">310,928 K</span><span class=\"smwttcontent\">37.778 °C <br />100 °F <br />559.67 °R <br /></span></span>"
]
}
}
],
"settings": {
"wgLang": "en",
"wgContLang": "es",
"wgLanguageCode": "es",
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|