diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0441.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0441.json | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0441.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0441.json new file mode 100644 index 00000000..2d80061b --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0441.json @@ -0,0 +1,47 @@ +{ + "description": "Test in-text `_txt` 00 string/loose comparison (#2061)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has text", + "contents": "[[Has type::Text]]" + }, + { + "page": "Example/P0441/1", + "contents": "[[Has text::011]] [[Has text::0011]]" + }, + { + "page": "Example/P0441/1", + "contents": "[[Has text::011]] [[Has text::00011]]" + }, + { + "page": "Example/P0441/2", + "contents": "{{#ask: [[Example/P0441/1]] |?Has text }}", + "message-cache": "clear" + } + ], + "tests": [ + { + "type": "parser", + "about": "#0", + "subject": "Example/P0441/2", + "assert-output": { + "to-contain": [ + "<td class=\"Has-text smwtype_txt\" data-sort-value=\"011\">011<br />00011</td>" + ], + "no-contain": [ + "<td class=\"Has-text smwtype_txt\" data-sort-value=\"011\">011</td>" + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "en" + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |