{ "description": "Test `Special:Browse` with special characters `%'\"&` (`wgContLang=en`, `wgLang=es` )", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has page", "contents": "[[Has type::Page]]" }, { "page": "Example/SB0005/L'oéal", "contents": "[[Has page::{{FULLPAGENAME}}]] [[Category:SB0005]]" }, { "page": "Example/SB0005/%Some@%", "contents": "[[Has page::{{FULLPAGENAME}}]] [[Category:SB0005]]" }, { "page": "Example/SB0005/ABC(-3-)", "contents": "[[Has page::{{FULLPAGENAME}}]] [[Category:SB0005]]" }, { "page": "Example/SB0005/\"Some\"&*^-25-20-2D", "contents": "[[Has page::{{FULLPAGENAME}}]] [[Category:SB0005]]" } ], "tests": [ { "type": "special", "about": "#0", "special-page": { "page": "Browse", "query-parameters": "Example/SB0005/L'oéal", "request-parameters": { "output": "legacy" } }, "assert-output": { "to-contain": [ "Example-2FSB0005-2FL%27o%C3%A9al", "title=\"Example/SB0005/L'oéal\">Example/SB0005/L'oéal", "Example-2FSB0005-2FL'oéal" ] } }, { "type": "special", "about": "#1", "special-page": { "page": "Browse", "query-parameters": "", "request-parameters": { "output": "legacy", "article" : "Example/SB0005/L'oéal" } }, "assert-output": { "to-contain": [ "Example-2FSB0005-2FL%27o%C3%A9al", "title=\"Example/SB0005/L'oéal\">Example/SB0005/L'oéal", "Example-2FSB0005-2FL'oéal" ] } }, { "type": "special", "about": "#2", "special-page": { "page": "Browse", "query-parameters": "Example/SB0005/%Some@%", "request-parameters": { "output": "legacy" } }, "assert-output": { "to-contain": [ "title=\"Example/SB0005/%Some@%\">Example/SB0005/%Some@%", "Example-2FSB0005-2F-25Some@-25" ] } }, { "type": "special", "about": "#3", "special-page": { "page": "Browse", "query-parameters": "", "request-parameters": { "output": "legacy", "article" : "Example/SB0005/%Some@%" } }, "assert-output": { "to-contain": [ "title=\"Example/SB0005/%Some@%\">Example/SB0005/%Some@%", "Example-2FSB0005-2F-25Some@-25" ] } }, { "type": "special", "about": "#4", "special-page": { "page": "Browse", "query-parameters": "Example/SB0005/ABC(-3-)", "request-parameters": { "output": "legacy" } }, "assert-output": { "to-contain": [ "title=\"Example/SB0005/ABC(-3-)\">Example/SB0005/ABC(-3-)", "Example-2FSB0005-2FABC(-2D3-2D)" ] } }, { "type": "special", "about": "#5", "special-page": { "page": "Browse", "query-parameters": "", "request-parameters": { "output": "legacy", "article" : "Example/SB0005/ABC(-3-)" } }, "assert-output": { "to-contain": [ "title=\"Example/SB0005/ABC(-3-)\">Example/SB0005/ABC(-3-)", "Example-2FSB0005-2FABC(-2D3-2D)" ] } }, { "type": "special", "about": "#6", "special-page": { "page": "Browse", "query-parameters": "Example/SB0005/\"Some\"&*^-25-20-2D", "request-parameters": { "output": "legacy" } }, "assert-output": { "to-contain": [ "Example/SB0005/%22Some%22%26*%5E-25-20-2D", "title=\"Example/SB0005/"Some"&*^-25-20-2D\">Example/SB0005/\"Some\"&*^-25-20-2D", "Example-2FSB0005-2F"Some"-26*^-2D25-2D20-2D2D" ] } }, { "type": "special", "about": "#7", "special-page": { "page": "Browse", "query-parameters": "", "request-parameters": { "output": "legacy", "article": "Example/SB0005/\"Some\"&*^-25-20-2D" } }, "assert-output": { "to-contain": [ "Example/SB0005/%22Some%22%26*%5E-25-20-2D", "title=\"Example/SB0005/"Some"&*^-25-20-2D\">Example/SB0005/\"Some\"&*^-25-20-2D", "Example-2FSB0005-2F"Some"-26*^-2D25-2D20-2D2D" ] } } ], "settings": { "wgContLang": "en", "wgLang": "es", "smwgPageSpecialProperties": [ "_MDAT" ], "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true } }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }