52 lines
1.0 KiB
JSON
52 lines
1.0 KiB
JSON
{
|
|
"description": "Test in-text annotation with enabled links in values on `[`, `]` (#2671, `wgContLang=en`)",
|
|
"setup": [
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has text",
|
|
"contents": "[[Has type::text]]"
|
|
},
|
|
{
|
|
"page": "Example/P0454/1",
|
|
"contents": ""
|
|
},
|
|
{
|
|
"page": "Example/P0454/2",
|
|
"contents": "[[Example/P0454/1|[[Foo]]]]"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "parser",
|
|
"about": "#0 `[`/`]` are kept during parsing",
|
|
"subject": "Example/P0454/2",
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<a href=.* title=\"Example/P0454/1\">[[Foo]]</a>"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLang": "en",
|
|
"smwgParserFeatures": [
|
|
"SMW_PARSER_STRICT",
|
|
"SMW_PARSER_INL_ERROR",
|
|
"SMW_PARSER_HID_CATS",
|
|
"SMW_PARSER_LINV"
|
|
],
|
|
"smwgPageSpecialProperties": [
|
|
"_MDAT"
|
|
],
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true,
|
|
"SMW_NS_PROPERTY": true
|
|
}
|
|
},
|
|
"meta": {
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |