diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/f-0207.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/f-0207.json | 202 |
1 files changed, 202 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/f-0207.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/f-0207.json new file mode 100644 index 00000000..0ccd8b27 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/f-0207.json @@ -0,0 +1,202 @@ +{ + "description": "Test `format=table` on formatted indent when using */#/: (en)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has text", + "contents": "[[Has type::Text]]" + }, + { + "page": "Example/F0207/1/1", + "contents": "[[Has text::* 123 \n* 345]] [[Category:F0207]]" + }, + { + "page": "Example/F0207/1/2", + "contents": "{{#subobject:|Has text=* 一二三 \n* 四五六 \nsome text without indent|@category=F0207}}" + }, + { + "page": "Example/F0207/1/3", + "contents": "[[Has text::# abc \n# def]] [[Category:F0207]]" + }, + { + "page": "Example/F0207/1/4", + "contents": "[[Has text::: ABC \n:: DEF]] [[Category:F0207]]" + }, + { + "page": "Example/F0207/1/5", + "contents": "[[Has text::Some text * without indent]]" + }, + { + "page": "Example/F0207/1/6", + "contents": "[[Has text::*Without space\n#123]]" + }, + { + "page": "Example/F0207/1a", + "contents": "{{#ask: [[Category:F0207]] |?Has text |format=table |link=none}}" + }, + { + "page": "Example/F0207/1b", + "contents": "{{#show: Example/F0207/1/1 |?Has text }}" + }, + { + "page": "Example/F0207/3a", + "contents": "{{#show: Example/F0207/1/3 |?Has text }}" + }, + { + "page": "Example/F0207/5a", + "contents": "{{#show: Example/F0207/1/5 |?Has text }}" + }, + { + "page": "Example/F0207/6a", + "contents": "{{#show: Example/F0207/1/6 |?Has text }}" + } + ], + "tests": [ + { + "type": "format", + "about": "#0 (1.31-)", + "skip-on": { + "mediawiki": [ ">1.30.x", "MediaWiki changed the HTML Tidy" ] + }, + "subject": "Example/F0207/1a", + "assert-output": { + "to-contain": [ + "<td class=\"smwtype_wpg\">Example/F0207/1/1</td><td class=\"Has-text smwtype_txt\">", + "<li> 123", + "<li> 345", + "<td class=\"smwtype_wpg\">Example/F0207/1/2#_f3c65172820fbf16a271da866298e82b</td><td class=\"Has-text smwtype_txt\">", + "<li> 一二三", + "<li> 四五六", + "<p>some text without indent", + "<td class=\"smwtype_wpg\">Example/F0207/1/3</td><td class=\"Has-text smwtype_txt\">", + "<li> abc", + "<li> def", + "<tr data-row-number=\"4\" class=\"row-even\"><td class=\"smwtype_wpg\">Example/F0207/1/4</td><td class=\"Has-text smwtype_txt\">", + "<dd> ABC", + "<dd> DEF" + ] + } + }, + { + "type": "format", + "about": "#0 (1.31+)", + "skip-on": { + "mediawiki": [ "<1.30.x", "MediaWiki changed the HTML Tidy" ] + }, + "subject": "Example/F0207/1a", + "assert-output": { + "to-contain": [ + "<td class=\"smwtype_wpg\">Example/F0207/1/1</td><td class=\"Has-text smwtype_txt\">", + "<li>123", + "<li>345", + "<td class=\"smwtype_wpg\">Example/F0207/1/2#_f3c65172820fbf16a271da866298e82b</td><td class=\"Has-text smwtype_txt\">", + "<li>一二三", + "<li>四五六", + "<p>some text without indent", + "<td class=\"smwtype_wpg\">Example/F0207/1/3</td><td class=\"Has-text smwtype_txt\">", + "<li>abc", + "<li>def", + "<tr data-row-number=\"4\" class=\"row-even\"><td class=\"smwtype_wpg\">Example/F0207/1/4</td><td class=\"Has-text smwtype_txt\">", + "<dd>ABC", + "<dd>DEF" + ] + } + }, + { + "type": "format", + "about": "#1 (1.31-)", + "skip-on": { + "mediawiki": [ ">1.30.x", "MediaWiki changed the HTML Tidy" ] + }, + "subject": "Example/F0207/1b", + "assert-output": { + "to-contain": [ + "<ul>", + "<li> 123", + "<li> 345" + ] + } + }, + { + "type": "format", + "about": "#1 (1.31+)", + "skip-on": { + "mediawiki": [ "<1.30.x", "MediaWiki changed the HTML Tidy" ] + }, + "subject": "Example/F0207/1b", + "assert-output": { + "to-contain": [ + "<ul>", + "<li>123", + "<li>345" + ] + } + }, + { + "type": "format", + "about": "#2 (1.31-)", + "skip-on": { + "mediawiki": [ ">1.30.x", "MediaWiki changed the HTML Tidy" ] + }, + "subject": "Example/F0207/3a", + "assert-output": { + "to-contain": [ + "<ol>", + "<li> abc", + "<li> def" + ] + } + }, + { + "type": "format", + "about": "#2 (1.31+)", + "skip-on": { + "mediawiki": [ "<1.30.x", "MediaWiki changed the HTML Tidy" ] + }, + "subject": "Example/F0207/3a", + "assert-output": { + "to-contain": [ + "<ol>", + "<li>abc", + "<li>def" + ] + } + }, + { + "type": "format", + "about": "#3", + "subject": "Example/F0207/5a", + "assert-output": { + "to-contain": [ + "<p>Some text * without indent" + ] + } + }, + { + "type": "format", + "about": "#4", + "subject": "Example/F0207/6a", + "assert-output": { + "to-contain": [ + "<ul>", + "<li>Without space", + "<ol>", + "<li>123" + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "en", + "smwgNamespacesWithSemanticLinks": { + "NS_MAIN": true, + "SMW_NS_PROPERTY": true + } + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |