summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0454.json
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0454.json')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0454.json52
1 files changed, 52 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0454.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0454.json
new file mode 100644
index 00000000..c1ed0946
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0454.json
@@ -0,0 +1,52 @@
+{
+ "description": "Test in-text annotation with enabled links in values on `[`, `]` (#2671, `wgContLang=en`)",
+ "setup": [
+ {
+ "namespace": "SMW_NS_PROPERTY",
+ "page": "Has text",
+ "contents": "[[Has type::text]]"
+ },
+ {
+ "page": "Example/P0454/1",
+ "contents": ""
+ },
+ {
+ "page": "Example/P0454/2",
+ "contents": "[[Example/P0454/1|[[Foo]]]]"
+ }
+ ],
+ "tests": [
+ {
+ "type": "parser",
+ "about": "#0 `[`/`]` are kept during parsing",
+ "subject": "Example/P0454/2",
+ "assert-output": {
+ "to-contain": [
+ "<a href=.* title=\"Example/P0454/1\">&#91;&#91;Foo&#93;&#93;</a>"
+ ]
+ }
+ }
+ ],
+ "settings": {
+ "wgContLang": "en",
+ "wgLang": "en",
+ "smwgParserFeatures": [
+ "SMW_PARSER_STRICT",
+ "SMW_PARSER_INL_ERROR",
+ "SMW_PARSER_HID_CATS",
+ "SMW_PARSER_LINV"
+ ],
+ "smwgPageSpecialProperties": [
+ "_MDAT"
+ ],
+ "smwgNamespacesWithSemanticLinks": {
+ "NS_MAIN": true,
+ "SMW_NS_PROPERTY": true
+ }
+ },
+ "meta": {
+ "version": "2",
+ "is-incomplete": false,
+ "debug": false
+ }
+} \ No newline at end of file