summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0106.json
blob: 79f420ca82f116c7b69fcbb7ae3fc0f9e6376e12 (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
{
	"description": "Test #info parser output (#1019, `wgContLang=en`, `wgLang=en`)",
	"setup": [
		{
			"message-cache": "clear",
			"page": "P0106/Warning",
			"contents": "{{#info: an warning text | warning }}"
		},
		{
			"message-cache": "clear",
			"page": "P0106/Error",
			"contents": "{{#info: an error text | error }}"
		},
		{
			"message-cache": "clear",
			"page": "P0106/Note",
			"contents": "{{#info: an info note | note }}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0",
			"subject": "P0106/Warning",
			"assert-output": {
				"to-contain": [
					"<span class=\"smw-highlighter\" data-type=\"4\" data-state=\"inline\" data-title=\"Warning\" title=\"an warning text\">",
					"<span class=\"smwtticon warning\">",
					"<span class=\"smwttcontent\">an warning text</span>"
				]
			}
		},
		{
			"type": "parser",
			"about": "#1",
			"subject": "P0106/Error",
			"assert-output": {
				"to-contain": [
					"<span class=\"smw-highlighter\" data-type=\"5\" data-state=\"inline\" data-title=\"Error\" title=\"an error text\">",
					"<span class=\"smwtticon error\">",
					"<span class=\"smwttcontent\">an error text</span>"
				]
			}
		},
		{
			"type": "parser",
			"about": "#2",
			"subject": "P0106/Note",
			"assert-output": {
				"to-contain": [
					"<span class=\"smw-highlighter\" data-type=\"8\" data-state=\"inline\" data-title=\"Note\" title=\"an info note\">",
					"<span class=\"smwtticon note\">",
					"<span class=\"smwttcontent\">an info note</span>"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en"
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}