summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/f-0207.json
blob: 0ccd8b277aded9584bbc273ae76d05b751cfd368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
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
	}
}