98 lines
1.8 KiB
JSON
98 lines
1.8 KiB
JSON
{
|
|
"description": "Test property page with parameters (#2479, `wgContLang=en`, `wgLang=en`)",
|
|
"setup": [
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has page test",
|
|
"contents": "[[Has type::Page]]"
|
|
},
|
|
{
|
|
"page": "Example/P1001/1",
|
|
"contents": "[[Has page test::One]]"
|
|
},
|
|
{
|
|
"page": "Example/P1001/2",
|
|
"contents": "[[Has page test::Two]]"
|
|
},
|
|
{
|
|
"page": "Example/P1001/3",
|
|
"contents": "[[Has page test::Foo]]"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "parser",
|
|
"about": "#0",
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"subject": "Has page test",
|
|
"assert-output": {
|
|
"onPageView": {
|
|
"parameters": {
|
|
"limit": "1",
|
|
"offset": "1"
|
|
}
|
|
},
|
|
"to-contain": [
|
|
"Has_page_test&limit=1&offset=0",
|
|
"title=\"Example/P1001/2\""
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#1 (see issue #2479)",
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"subject": "Has page test",
|
|
"assert-output": {
|
|
"onPageView": {
|
|
"parameters": {
|
|
"limit": "1foo",
|
|
"offset": "1"
|
|
}
|
|
},
|
|
"to-contain": [
|
|
"Has_page_test&limit=1&offset=0",
|
|
"title=\"Example/P1001/2\""
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#2 (use a filter, #2878)",
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"subject": "Has page test",
|
|
"assert-output": {
|
|
"onPageView": {
|
|
"parameters": {
|
|
"filter": "Foo"
|
|
}
|
|
},
|
|
"to-contain": [
|
|
"=&filter=Foo",
|
|
"title=\"Example/P1001/3\""
|
|
],
|
|
"not-contain": [
|
|
"Example/P1001/1",
|
|
"Example/P1001/2"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLang": "en",
|
|
"smwgPageSpecialProperties": [
|
|
"_MDAT"
|
|
],
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true,
|
|
"SMW_NS_PROPERTY": true
|
|
}
|
|
},
|
|
"meta": {
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
}
|