{ "description": "Test output via `Special:Ask` to verify limit, offset", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has number", "contents": "[[Has type::Number]]" }, { "namespace": "NS_MAIN", "page": "SA0019/1", "contents": "[[Has number::11]] [[Category:SA0019]]" }, { "namespace": "NS_MAIN", "page": "SA0019/2", "contents": "[[Has number::12]] [[Category:SA0019]]" }, { "namespace": "NS_MAIN", "page": "SA0019/3", "contents": "[[Has number::42]] [[Category:SA0019]]" }, { "namespace": "NS_MAIN", "page": "SA0019/4", "contents": "[[Has number::1001]] [[Category:SA0019]]" } ], "tests": [ { "type": "special", "about": "#0", "description": "Verifies that the offset is set and only two results are returned", "special-page": { "page": "Ask", "request-parameters": { "p": { "link": "none", "mainlabel": "", "format": "table" }, "q": "[[Category:SA0019]]", "po": "?Has number", "offset": 2, "limit": 20 } }, "assert-output": { "to-contain": [ "SA0019/342", "SA0019/41,001" ], "not-contain": [ "SA0019/111", "SA0019/212" ] } } ], "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 } }