diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0433.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0433.json | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0433.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0433.json new file mode 100644 index 00000000..f8fa2e76 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0433.json @@ -0,0 +1,87 @@ +{ + "description": "Test in-text annotation `::` with left pipe (#1747, `wgContLang=en`)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has text", + "contents": "[[Has type::Text]]" + }, + { + "page": "Example/P0433/1", + "contents": "[[Foo|Bar::Foobar]] [[File:Example.png|alt=Bar::Foobar|Caption]] [[File:Example.png|Bar::Foobar|link=Foo]]" + }, + { + "page": "Example/P0433/2", + "contents": "{{#set:Has text=[[Foo|Bar::Foobar]] [[File:Example.png|alt=Bar::Foobar|Caption]] [[File:Example.png|Bar::Foobar|link=Foo]] }}" + }, + { + "page": "Example/P0433/Q.1", + "contents": "{{#ask: [[Example/P0433/2]] |?Has text |link=none}}" + } + ], + "tests": [ + { + "type": "parser", + "about": "#0 no annotation due to left pipe", + "subject": "Example/P0433/1", + "assert-store": { + "semantic-data": { + "strictPropertyValueMatch": false, + "propertyCount": 3, + "propertyKeys": [ + "_SKEY", + "_MDAT", + "_INST" + ], + "propertyValues": [] + } + } + }, + { + "type": "parser", + "about": "#1", + "subject": "Example/P0433/2", + "assert-store": { + "semantic-data": { + "strictPropertyValueMatch": false, + "propertyCount": 3, + "propertyKeys": [ + "_SKEY", + "_MDAT", + "Has_text" + ], + "propertyValues": [ + "[[Foo|Bar::Foobar]] [[File:Example.png|alt=Bar::Foobar|Caption]] [[File:Example.png|Bar::Foobar|link=Foo]]" + ] + } + } + }, + { + "type": "parser", + "about": "#2", + "subject": "Example/P0433/Q.1", + "assert-output": { + "to-contain": [ + "title=\"File:Example.png\">Caption</a>", + "title=\"File:Example.png\">Bar::Foobar</a>" + ] + } + } + ], + "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 |