Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (84 sloc) 1.73 KB
{
"description": "Test `_rec`/`_mlt_rec`(`_PDESC`) to use property chaining (`wgContLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has text",
"contents": "[[Has type::Text]] [[Has property description::Text property@en]] [[Category:Q1107]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has number",
"contents": "[[Has type::Number]] [[Has property description::Number property@en]] [[Category:Q1107]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has record text",
"contents": "[[Has type::Record]] [[Has fields::Has text;Has number]]"
},
{
"page": "Example/Q1107/1",
"contents": "{{#subobject: Test|Has text=Foo|Has record text=abc;222}}"
}
],
"tests": [
{
"type": "query",
"about": "#0",
"condition": "[[Category:Q1107]] [[Has property description.Language code::en]]",
"printouts": [],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": 2,
"results": [
"Has text#102##",
"Has number#102##"
]
},
"store": {
"clear-cache": true
}
},
{
"type": "query",
"about": "#1",
"condition": "[[Has subobject.Has record text.Has number::222]]",
"printouts": [],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": 1,
"results": [
"Example/Q1107/1#0##"
]
}
},
{
"type": "query",
"about": "#2",
"condition": "[[Has record text.Has number::222]]",
"printouts": [],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": 1,
"results": [
"Example/Q1107/1#0##Test"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en"
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
You can’t perform that action at this time.