diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0425.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0425.json | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0425.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0425.json new file mode 100644 index 00000000..e2db98de --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0425.json @@ -0,0 +1,71 @@ +{ + "description": "Test in-text annotation on `_tem`/ `_num` with different page content language (#1591, `wgContLang=es`, `wgLang=en`)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has temperature", + "contents": "[[Has type::Temperature]]" + }, + { + "contentlanguage": "fr", + "page": "Example/P0425/1", + "contents": "[[Has temperature::310.928 K]]" + }, + { + "contentlanguage": "en", + "page": "Example/P0425/2", + "contents": "[[Has temperature::310.928 K]]" + }, + { + "contentlanguage": "fr", + "page": "Example/P0425/3", + "contents": "[[Has temperature::310,928 K]]" + } + ], + "tests": [ + { + "type": "parser", + "about": "#0 page content language FR and . do not match, uses `en` as display language", + "subject": "Example/P0425/1", + "assert-output": { + "to-contain": [ + "<span class=\"smwttcontent\">\".928K\" is not declared as a valid unit of measurement for this property.</span>" + ] + } + }, + { + "type": "parser", + "about": "#1 page content language EN and . do match", + "subject": "Example/P0425/2", + "assert-output": { + "to-contain": [ + "<span class=\"smwtext\">310.928 K</span><span class=\"smwttcontent\">37.778 °C <br />100 °F <br />559.67 °R <br /></span></span>" + ] + } + }, + { + "type": "parser", + "about": "#2 page content language FR and , do match", + "subject": "Example/P0425/3", + "assert-output": { + "to-contain": [ + "<span class=\"smwtext\">310,928 K</span><span class=\"smwttcontent\">37.778 °C <br />100 °F <br />559.67 °R <br /></span></span>" + ] + } + } + ], + "settings": { + "wgLang": "en", + "wgContLang": "es", + "wgLanguageCode": "es", + "smwgNamespacesWithSemanticLinks": { + "NS_MAIN": true, + "SMW_NS_PROPERTY": true + } + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |