45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"description": "Test `#ask` with enabled execution limit (`wgContLang=en`, `wgLang=en`, `smwgQExpensiveThreshold`, `smwgQExpensiveExecutionLimit`)",
|
|
"setup": [
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has text",
|
|
"contents": "[[Has type::Text]]"
|
|
},
|
|
{
|
|
"page": "Example/P0707/1",
|
|
"contents": "[[Has text::123]]"
|
|
},
|
|
{
|
|
"page": "Example/P0707/Q.1",
|
|
"contents": "{{#ask: [[Has text::+]] |?Has text }} {{#ask: [[Has text::123]] |?Has text }}"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "parser",
|
|
"about": "#0",
|
|
"subject": "Example/P0707/Q.1",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"title=\"Example/P0707/1\">Example/P0707/1",
|
|
"title=\"The parser function has reached the limit for expensive executions"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLang": "en",
|
|
"smwgQExpensiveExecutionLimit": 1,
|
|
"smwgQExpensiveThreshold": 0,
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true
|
|
}
|
|
},
|
|
"meta": {
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |