161 lines
4.1 KiB
JSON
161 lines
4.1 KiB
JSON
{
|
|
"description": "Test `Special:Browse` output for `_dat`, `_boo`, `_sobj`, `_uri` (`wgContLang=en`, `wgLang=es`, skip-on 1.25.6)",
|
|
"setup": [
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has date",
|
|
"contents": "[[Has type::Date]]"
|
|
},
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has boolean",
|
|
"contents": "[[Has type::Boolean]]"
|
|
},
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has number",
|
|
"contents": "[[Has type::Number]]"
|
|
},
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has atomic mass unit",
|
|
"contents": "[[Has type::Quantity]] [[Corresponds to::1 u]] [[Corresponds to::1.660539040e-27 kg]]"
|
|
},
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has url",
|
|
"contents": "[[Has type::URL]]"
|
|
},
|
|
{
|
|
"page": "Example/SB0003/1",
|
|
"contents": "[[Has date::12 Jan 1991 8:56]] [[Has boolean::true]] [[Category:SB0003]]"
|
|
},
|
|
{
|
|
"page": "Example/SB0003/2",
|
|
"contents": "[[Has number::0.00000000000012]] [[Has number::72.769482308]] [[Has number::1.334e-13]] [[Category:SB0003]]"
|
|
},
|
|
{
|
|
"page": "Example/SB0003/3 (Hydrogen-1 atom)",
|
|
"contents": "[[Has atomic mass unit::1.007825 u]] [[Category:SB0003]]"
|
|
},
|
|
{
|
|
"page": "Example/SB0003/4",
|
|
"contents": "{{#subobject:ABC::DEF|Has number=123}}"
|
|
},
|
|
{
|
|
"page": "Example/SB0003/5",
|
|
"contents": "[[Has url::http://example.org/some1::23:334/::56]]"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "special",
|
|
"about": "#0",
|
|
"special-page": {
|
|
"page": "Browse",
|
|
"query-parameters": "Example/SB0003/1",
|
|
"request-parameters": {
|
|
"output": "legacy"
|
|
}
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-factbox-value\">verdadero  ",
|
|
"SearchByProperty/:Has-20boolean/true",
|
|
"<span class=\"smw-factbox-value\">08:56:00 12 ene 1991  "
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "special",
|
|
"about": "#1 (numbers)",
|
|
"special-page": {
|
|
"page": "Browse",
|
|
"query-parameters": "Example/SB0003/2",
|
|
"request-parameters": {
|
|
"output": "legacy"
|
|
}
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-factbox-value\">1,2e-13  ",
|
|
"<span class=\"smw-factbox-value\">72,769  ",
|
|
"<span class=\"smw-factbox-value\">1,334e-13  ",
|
|
"Special:SearchByProperty/:Has-20number/1.2e-2D13",
|
|
"Special:SearchByProperty/:Has-20number/72.769482308",
|
|
"Special:SearchByProperty/:Has-20number/1.334e-2D13"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "special",
|
|
"about": "#2 (quantity)",
|
|
"special-page": {
|
|
"page": "Browse",
|
|
"query-parameters": "Example/SB0003/3 (Hydrogen-1 atom)",
|
|
"request-parameters": {
|
|
"output": "legacy"
|
|
}
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-factbox-value\">1,008 u (1,673533e-27 kg)  ",
|
|
"Special:SearchByProperty/:Has-20atomic-20mass-20unit/1.007825-20u"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "special",
|
|
"about": "#3 named subobject contains ::",
|
|
"special-page": {
|
|
"page": "Browse",
|
|
"query-parameters": ":Example-2FSB0003-2F4-23ABC::DEF",
|
|
"request-parameters": {
|
|
"output": "legacy"
|
|
}
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<span class=\"smw-factbox-value\">123  ",
|
|
"Special:SearchByProperty/:Has-20number/123"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "special",
|
|
"about": "#4 url contains :: (encoded with -3A)",
|
|
"special-page": {
|
|
"page": "Browse",
|
|
"query-parameters": "Example/SB0003/5",
|
|
"request-parameters": {
|
|
"output": "legacy"
|
|
}
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"href=\"http://example.org/some1::23:334/::56\">http://example.org/some1::23:334/::56</a>  ",
|
|
"Special:SearchByProperty/:Has-20url/http-2D3A-2F-2Fexample.org-2Fsome1-2D3A-2D3A23-2D3A334-2F-2D3A-2D3A56"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLang": "es",
|
|
"smwgPageSpecialProperties": [
|
|
"_MDAT"
|
|
],
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true,
|
|
"SMW_NS_PROPERTY": true
|
|
}
|
|
},
|
|
"meta": {
|
|
"skip-on": {
|
|
"sitelanguage": [ "ja", "Some issues with NS_SPECIAL when 'ja' is used as sitelanguage." ]
|
|
},
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |