{
"description": "Test paser/in-text annotation with unstripped tags (nowiki etc.) (`SMW_PARSER_UNSTRIP`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has description",
"contents": "[[Has type::Text]]"
},
{
"page": "Example/P0455/1",
"contents": "[[Has description::
Contains pre tag]]" }, { "page": "Example/P0455/3", "contents": "[[Has description::
{{#ask: [[Has strip::Markers]] }} ]]"
},
{
"page": "Example/P0455/4",
"contents": "{{#set: Has description=Contains pre tag}}" }, { "page": "Example/P0455/6", "contents": "{{#set: Has description=
{{#ask: [[Has strip::Markers]] }} }}"
},
{
"page": "Example/P0455/7",
"contents": "{{#subobject: Has description=Contains pre tag}}" }, { "page": "Example/P0455/9", "contents": "{{#subobject: Has description=
{{#ask: [[Has strip::Markers]] }} }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 nowiki parse/unstrip",
"subject": "Example/P0455/1",
"assert-store": {
"semantic-data": {
"strict-mode-valuematch": false,
"propertyCount": 3,
"propertyKeys": [
"Has_description",
"_MDAT",
"_SKEY"
],
"propertyValues": [
"<nowiki>Contains nowiki tag</nowiki>"
]
}
},
"assert-output": {
"to-contain": [
"Contains nowiki tag"
]
}
},
{
"type": "parser",
"about": "#1 pre parse/unstrip",
"subject": "Example/P0455/2",
"assert-store": {
"semantic-data": {
"strict-mode-valuematch": false,
"propertyCount": 3,
"propertyKeys": [
"Has_description",
"_MDAT",
"_SKEY"
],
"propertyValues": [
"<pre>Contains pre tag</pre>"
]
}
},
"assert-output": {
"to-contain": [
"Contains pre tag" ] } }, { "type": "parser", "about": "#2 code/nowiki recursive parse/unstrip", "subject": "Example/P0455/3", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 3, "propertyKeys": [ "Has_description", "_MDAT", "_SKEY" ], "propertyValues": [ "<nowiki><code>{{#ask: [[Has strip::Markers]] }}</code></nowiki>" ] } }, "assert-output": { "to-contain": [ "
{{#ask: [[Has strip::Markers]] }}"
]
}
},
{
"type": "parser",
"about": "#3 #set nowiki parse/unstrip",
"subject": "Example/P0455/4",
"assert-store": {
"semantic-data": {
"strict-mode-valuematch": false,
"propertyCount": 3,
"propertyKeys": [
"Has_description",
"_MDAT",
"_SKEY"
],
"propertyValues": [
"<nowiki>Contains nowiki tag</nowiki>"
]
}
}
},
{
"type": "parser",
"about": "#4 #set pre parse/unstrip",
"subject": "Example/P0455/5",
"assert-store": {
"semantic-data": {
"strict-mode-valuematch": false,
"propertyCount": 3,
"propertyKeys": [
"Has_description",
"_MDAT",
"_SKEY"
],
"propertyValues": [
"<pre>Contains pre tag</pre>"
]
}
}
},
{
"type": "parser",
"about": "#5 #set code/nowiki recursive parse/unstrip",
"subject": "Example/P0455/6",
"assert-store": {
"semantic-data": {
"strict-mode-valuematch": false,
"propertyCount": 3,
"propertyKeys": [
"Has_description",
"_MDAT",
"_SKEY"
],
"propertyValues": [
"<nowiki><code>{{#ask: [[Has strip::Markers]] }}</code></nowiki>"
]
}
}
},
{
"type": "parser",
"about": "#6 #subobject nowiki parse/unstrip",
"subject": "Example/P0455/7#_726a6109c10cb1ff73b7d5659ad54a18",
"assert-store": {
"semantic-data": {
"strict-mode-valuematch": false,
"propertyCount": 2,
"propertyKeys": [
"Has_description",
"_SKEY"
],
"propertyValues": [
"<nowiki>Contains nowiki tag</nowiki>"
]
}
}
},
{
"type": "parser",
"about": "#7 #subobject pre parse/unstrip",
"subject": "Example/P0455/8#_74c67f7dc0f33736ec2d8f4f2132a585",
"assert-store": {
"semantic-data": {
"strict-mode-valuematch": false,
"propertyCount": 2,
"propertyKeys": [
"Has_description",
"_SKEY"
],
"propertyValues": [
"<pre>Contains pre tag</pre>"
]
}
}
},
{
"type": "parser",
"about": "#8 #subobject code/nowiki recursive parse/unstrip",
"subject": "Example/P0455/9#_4bb289f3707ef1e08395efb545cae8f3",
"assert-store": {
"semantic-data": {
"strict-mode-valuematch": false,
"propertyCount": 2,
"propertyKeys": [
"Has_description",
"_SKEY"
],
"propertyValues": [
"<nowiki><code>{{#ask: [[Has strip::Markers]] }}</code></nowiki>"
]
}
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"smwgParserFeatures": [
"SMW_PARSER_UNSTRIP",
"SMW_PARSER_STRICT"
]
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}