diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0453.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0453.json | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0453.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0453.json new file mode 100644 index 00000000..05632c7a --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0453.json @@ -0,0 +1,41 @@ +{ + "description": "Test in-text `_dat` annotation with `#LOCL#TO` (`wgLocalTZoffset`, `wgContLang=en`, `wgLang=en`)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has date", + "contents": "[[Has type::Date]]" + }, + { + "page": "Example/P0453/1", + "contents": "[[Has date::1 Jan 1971 13:00]]" + }, + { + "page": "Example/P0453/Q.1", + "contents": "{{#show: Example/P0453/1 |?Has date |?Has date#LOCL#TO }}" + } + ], + "tests": [ + { + "type": "parser", + "about": "#0", + "subject": "Example/P0453/Q.1", + "assert-output": { + "to-contain": [ + "<td class=\"smwtype_dat\" data-sort-value=\"2440953.0416667\">1 January 1971 13:00:00</td>", + "<td class=\"smwtype_dat\" data-sort-value=\"2440953.0416667\">15:00:00, 1 January 1971 <sup title=\"ISO: 1971-01-01T13:00:00\">ᴸ</sup></td>" + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "en", + "wgLocalTZoffset": 120 + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |