94 lines
2.2 KiB
JSON
94 lines
2.2 KiB
JSON
{
|
|
"description": "Test different \"wrong\" uses of `#show` (#4349)",
|
|
"setup": [
|
|
{
|
|
"namespace": "NS_MAIN",
|
|
"page": "page_with_display_title",
|
|
"contents": ""
|
|
},
|
|
{
|
|
"page": "P0213/1",
|
|
"contents": "{{#show:[[Display title of::page_with_display_title]]}}"
|
|
},
|
|
{
|
|
"page": "P0213/2",
|
|
"contents": "{{#show:[[]][[]]}}"
|
|
},
|
|
{
|
|
"page": "P0213/3",
|
|
"contents": "{{#show:[[Display title of::page_with_display_title]][[]]]}}"
|
|
},
|
|
{
|
|
"page": "P0213/4",
|
|
"contents": "{{#show:[[Display title of::page_with_display_title]][[Display title of::page_with_display_title]]}}"
|
|
},
|
|
{
|
|
"page": "P0213/5",
|
|
"contents": "{{#show:sdf[[]]asdasd[[]]asd}}"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "parser",
|
|
"about": "#0, #4349 use case 1, produces an error message",
|
|
"subject": "P0213/1",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"The part "]]" of the query was not understood.Results might not be as expected."
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#1, #4349 use case 2, produces an error message",
|
|
"subject": "P0213/2",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"The symbol "[[" was used in a place where it is not useful."
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#2, #4349 use case 3, produces an error message",
|
|
"subject": "P0213/3",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"The symbol "[[" was used in a place where it is not useful."
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#3, #4349 use case 4, produces an error message",
|
|
"subject": "P0213/4",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"The symbol "[[" was used in a place where it is not useful."
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "parser",
|
|
"about": "#4, #4349 use case 5, produces an error message",
|
|
"subject": "P0213/5",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"The symbol "[[" was used in a place where it is not useful."
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLang": "en",
|
|
"smwgPageSpecialProperties": [
|
|
"_MDAT"
|
|
]
|
|
},
|
|
"meta": {
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |