diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0448.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0448.json | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0448.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0448.json new file mode 100644 index 00000000..1a575457 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0448.json @@ -0,0 +1,74 @@ +{ + "description": "Test in-text legacy `:=` annotation style (#2153, `wgContLang=en`)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has text", + "contents": "[[Has type::Text]]" + }, + { + "page": "Example/P0448/1", + "contents": "[[Has text:=Lorem ipsum]]" + }, + { + "page": "Example/P0448/2", + "contents": "[[Has text::==Lorem ipsum==]]" + } + ], + "tests": [ + { + "type": "parser", + "about": "#0", + "subject": "Example/P0448/1", + "assert-store": { + "semantic-data": { + "strictPropertyValueMatch": false, + "propertyCount": 3, + "propertyKeys": [ + "_SKEY", + "_MDAT", + "Has text" + ], + "propertyValues": [ + "Lorem ipsum" + ] + } + } + }, + { + "type": "parser", + "about": "#1", + "subject": "Example/P0448/2", + "assert-store": { + "semantic-data": { + "strictPropertyValueMatch": false, + "propertyCount": 3, + "propertyKeys": [ + "_SKEY", + "_MDAT", + "Has text" + ], + "propertyValues": [ + "==Lorem ipsum==" + ] + } + } + } + ], + "settings": { + "wgContLang": "en", + "smwgParserFeatures": [ + "SMW_PARSER_STRICT", + "SMW_PARSER_INL_ERROR", + "SMW_PARSER_HID_CATS" + ], + "smwgPageSpecialProperties": [ + "_MDAT" + ] + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |