{ "description": "Test `Special:Browse` limited value list", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has page", "contents": "[[Has type::Page]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has text", "contents": "[[Has type::Text]]" }, { "page": "Example/SB0008/1", "contents": "[[Has text::S1]], [[Has text::S2]], [[Has text::S3]], [[Has text::S4]], [[Has text::S5]], [[Has text::S6]]" }, { "page": "Example/SB0008/2", "contents": "[[Has page::Example/SB0008/5]]" }, { "page": "Example/SB0008/3", "contents": "[[Has page::Example/SB0008/5]]" }, { "page": "Example/SB0008/4", "contents": "[[Has page::Example/SB0008/5]]" } ], "tests": [ { "type": "special", "about": "#0 (limited outgoing value list)", "special-page": { "page": "Browse", "query-parameters": "Example/SB0008/1", "request-parameters": { "output": "legacy", "valuelistlimit-out": 5 } }, "assert-output": { "to-contain": [ "S1", "S2", "S3", "S4", "S5" ], "not-contain": [ "S6" ] } }, { "type": "special", "about": "#1 (limited incoming value list)", "special-page": { "page": "Browse", "query-parameters": "Example/SB0008/5", "request-parameters": { "output": "legacy", "valuelistlimit-in": 3 } }, "assert-output": { "to-contain": [ "