summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0109.json
blob: 7f31bfc63a5bf92edb52d089bae68d9c0a490bce (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
{
	"description": "Test `#info`, `#ask`/`#show` with error output (`wgContLang=en`, `wgLang=en`)",
	"setup": [
		{
			"page": "Test/P0109/1",
			"contents": "Info: {{#info: message=Test some error {{#show: [[Test/P0109/2]] |?Has text }} }}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0 (1.31-) switch #info to error display",
			"skip-on": {
				"mediawiki": [ ">1.30.x", "MediaWiki changed the HTML Tidy" ]
			},
			"subject": "Test/P0109/1",
			"assert-output": {
				"to-contain": [
					"Info: Test some error <span class=\"smw-highlighter\" data-type=\"4\""
				],
				"not-contain": [
					"Info: <span class=\"smw-highlighter\" data-type=\"5\"",
					"<div class=\"smwttcontent\">Test some error <span class=\"smw-highlighter\" data-type=\"4\""
				]
			}
		},
		{
			"type": "parser",
			"about": "#0 (1.31+) switch #info to error display",
			"skip-on": {
				"mediawiki": [ "<1.30.x", "MediaWiki changed the HTML Tidy" ]
			},
			"subject": "Test/P0109/1",
			"assert-output": {
				"to-contain": [
					"Info: Test some error </p><span class=\"smw-highlighter\" data-type=\"4\""
				],
				"not-contain": [
					"Info: <span class=\"smw-highlighter\" data-type=\"5\"",
					"<div class=\"smwttcontent\">Test some error <span class=\"smw-highlighter\" data-type=\"4\""
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en"
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}