71 lines
1.9 KiB
JSON
71 lines
1.9 KiB
JSON
{
|
|
"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
|
|
}
|
|
} |