gplx/mediawiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0450.json

94 lines
1.9 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"description": "Test in-text annotation with invisible chars (`wgContLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has text",
"contents": "[[Has type::Text]]"
},
{
"page": "Example/P0450/1",
"contents": "[[Left-To-Right Mark::C++]] [[Left-To-Right Mark::C++]]"
},
{
"page": "Example/P0450/2",
"contents": "[[Right-To-Left Mark::באמת! -]] [[Right-To-Left Mark::באמת! -]]"
},
{
"page": "Example/P0450/3",
"contents": "[[Has text::no shyness]] [[Has text::visible shy­ness]] [[Has text::invisible shy­ness]]"
}
],
"tests": [
{
"type": "parser",
"about": "#0 Left-To-Right Mark chars",
"subject": "Example/P0450/1",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"_SKEY",
"_MDAT",
"Left-To-Right Mark"
],
"propertyValues": [
"C++"
]
}
}
},
{
"type": "parser",
"about": "#1 Right-To-Left Mark chars",
"subject": "Example/P0450/2",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"_SKEY",
"_MDAT",
"Right-To-Left Mark"
],
"propertyValues": [
"באמת! -"
]
}
}
},
{
"type": "parser",
"about": "#2 shy char",
"subject": "Example/P0450/3",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"_SKEY",
"_MDAT",
"Has text"
],
"propertyValues": [
"no shyness",
"visible shyness",
"invisible shyness"
]
}
}
}
],
"settings": {
"wgContLang": "en",
"smwgPageSpecialProperties": [
"_MDAT"
]
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}