diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0437.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0437.json | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0437.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0437.json new file mode 100644 index 00000000..9f5588df --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0437.json @@ -0,0 +1,42 @@ +{ + "description": "Test in-text annotation with preferred property label/`_PPLB` (#1879, `wgContLang=en`, `wgLang=ja`)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "P106", + "contents": { + "import-from": "/../Fixtures/P106.txt" + } + }, + { + "page": "Example/P0437/1", + "contents": "{{#subobject: |P106=Teacher }}{{#subobject: |P106=Actor }}" + }, + { + "page": "Example/P0437/Q.1", + "contents": "{{#ask: [[P106::+]] |?P106 }}" + } + ], + "tests": [ + { + "type": "parser", + "about": "#0 (ja)", + "subject": "Example/P0437/Q.1", + "assert-output": { + "to-contain": [ + "data-title=\"プロパティ\" title=\"人物の職業。「専門分野」(Property:P101) も参照\">", + "title=\"Property:P106\">職業</a>" + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "ja" + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |