Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (73 sloc) 4.27 KB
{
"description": "Test `format=table` on `_tem`/ `_num` with `LOCAL@...` output (#1591, `wgContLang=es`, `wgLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has temperature",
"contents": "[[Has type::Temperature]]"
},
{
"page": "Example/F0209/1",
"contents": "{{#subobject: |Has temperature = 3,928 K |@category=F0209}}{{#subobject: |Has temperature = 113,928 K |@category=F0209 }}{{#subobject: |Has temperature = 5413,928 K |@category=F0209 }}{{#subobject: |Has temperature = 44413,928 K |@category=F0209 }}"
},
{
"page": "Example/F0209/Q1.1",
"contents": "{{#ask: [[Category:F0209]] |?Has temperature |?Has temperature#LOCL@fr=fr }}"
}
],
"tests": [
{
"type": "format",
"about": "#0 (1.31-) different lang formatting (en for user lang + fr) rules don't interfere with each other",
"skip-on": {
"mediawiki": [ ">1.30.x", "MediaWiki changed the HTML Tidy" ]
},
"subject": "Example/F0209/Q1.1",
"assert-output": {
"to-contain": [
"<span class=\"smwtext\">5,413.928&#160;K</span><span class=\"smwttcontent\">5,140.778&#160;°C &lt;br /&gt;9,285.4&#160;°F &lt;br /&gt;9,745.07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">5 413,928&#160;K</span><span class=\"smwttcontent\">5 140,778&#160;°C &lt;br /&gt;9 285,4&#160;°F &lt;br /&gt;9 745,07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">44,413.928&#160;K</span><span class=\"smwttcontent\">44,140.778&#160;°C &lt;br /&gt;79,485.4&#160;°F &lt;br /&gt;79,945.07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">44 413,928&#160;K</span><span class=\"smwttcontent\">44 140,778&#160;°C &lt;br /&gt;79 485,4&#160;°F &lt;br /&gt;79 945,07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">3.928&#160;K</span><span class=\"smwttcontent\">-269.222&#160;°C &lt;br /&gt;-452.6&#160;°F &lt;br /&gt;7.07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">3,928&#160;K</span><span class=\"smwttcontent\">-269,222&#160;°C &lt;br /&gt;-452,6&#160;°F &lt;br /&gt;7,07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">113.928&#160;K</span><span class=\"smwttcontent\">-159.222&#160;°C &lt;br /&gt;-254.6&#160;°F &lt;br /&gt;205.07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">113,928&#160;K</span><span class=\"smwttcontent\">-159,222&#160;°C &lt;br /&gt;-254,6&#160;°F &lt;br /&gt;205,07&#160;°R &lt;br /&gt;"
]
}
},
{
"type": "format",
"about": "#0 (1.31+) different lang formatting (en for user lang + fr) rules don't interfere with each other",
"skip-on": {
"mediawiki": [ "<1.30.x", "MediaWiki changed the HTML Tidy" ]
},
"subject": "Example/F0209/Q1.1",
"assert-output": {
"to-contain": [
"<span class=\"smwtext\">5,413.928&#160;K</span><span class=\"smwttcontent\">5,140.778&#160;°C &lt;br /&gt;9,285.4&#160;°F &lt;br /&gt;9,745.07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">5&#160;413,928&#160;K</span><span class=\"smwttcontent\">5&#160;140,778&#160;°C &lt;br /&gt;9&#160;285,4&#160;°F &lt;br /&gt;9&#160;745,07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">44,413.928&#160;K</span><span class=\"smwttcontent\">44,140.778&#160;°C &lt;br /&gt;79,485.4&#160;°F &lt;br /&gt;79,945.07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">44&#160;413,928&#160;K</span><span class=\"smwttcontent\">44&#160;140,778&#160;°C &lt;br /&gt;79&#160;485,4&#160;°F &lt;br /&gt;79&#160;945,07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">3.928&#160;K</span><span class=\"smwttcontent\">-269.222&#160;°C &lt;br /&gt;-452.6&#160;°F &lt;br /&gt;7.07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">3,928&#160;K</span><span class=\"smwttcontent\">-269,222&#160;°C &lt;br /&gt;-452,6&#160;°F &lt;br /&gt;7,07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">113.928&#160;K</span><span class=\"smwttcontent\">-159.222&#160;°C &lt;br /&gt;-254.6&#160;°F &lt;br /&gt;205.07&#160;°R &lt;br /&gt;",
"<span class=\"smwtext\">113,928&#160;K</span><span class=\"smwttcontent\">-159,222&#160;°C &lt;br /&gt;-254,6&#160;°F &lt;br /&gt;205,07&#160;°R &lt;br /&gt;"
]
}
}
],
"settings": {
"wgContLang": "es",
"wgLang": "en",
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
You can’t perform that action at this time.