{ "description": "Test `Special:Ask` with `format=json` output (`wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has text", "contents": "[[Has type::Text]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has number", "contents": "[[Has type::Number]]" }, { "namespace": "NS_MAIN", "page": "Example/SA0007/1", "contents": "[[Has text::Some example]] [[Category:SA0007]]" }, { "namespace": "NS_MAIN", "page": "Example/SA0007/2", "contents": "[[Has number::123]] [[Has number::345]] [[Category:SA0007]]" } ], "tests": [ { "type": "special", "about": "#0", "special-page": { "page": "Ask", "request-parameters": { "p": { "link": "none", "limit": "10", "offset": "0", "mainlabel": "", "prettyprint": false, "unescape": true, "format": "json" }, "q": "[[Category:SA0007]]", "po": "?Has text|?Has number" } }, "assert-output": { "to-contain": { "contents-file" : "/../Fixtures/special-ask-0007.0.txt" } } }, { "type": "special", "about": "#1 `type=simple`", "special-page": { "page": "Ask", "request-parameters": { "p": { "link": "none", "limit": "10", "offset": "0", "mainlabel": "", "type": "simple", "prettyprint": false, "unescape": true, "format": "json" }, "q": "[[Category:SA0007]]", "po": "?Has text|?Has number" } }, "assert-output": { "to-contain": { "contents-file" : "/../Fixtures/special-ask-0007.1.txt" } } }, { "type": "special", "about": "#2 `type=simple`, `mainlabel=-`", "special-page": { "page": "Ask", "request-parameters": { "p": { "link": "none", "limit": "10", "offset": "0", "mainlabel": "-", "type": "simple", "prettyprint": false, "unescape": true, "format": "json" }, "q": "[[Category:SA0007]]", "po": "?Has text|?Has number" } }, "assert-output": { "to-contain": { "contents-file" : "/../Fixtures/special-ask-0007.2.txt" } } } ], "settings": { "wgContLang": "en", "wgLang": "en", "wgLanguageCode": "en", "smwgPageSpecialProperties": [ "_MDAT" ], "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true } }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }