summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0017.json
blob: ef55a15dd47f8e930b1e879fd82d2a0413e834f6 (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
{
	"description": "Test `Special:Types` (`wgContLang=en`, `wgLang=en`)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has monolingual text",
			"contents": "[[Has type::Monolingual text]]"
		},
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has text",
			"contents": "[[Has type::Text]]"
		}
	],
	"tests": [
		{
			"type": "special",
			"about": "#0",
			"special-page": {
				"page": "Types",
				"query-parameters": "",
				"request-parameters": []
			},
			"assert-output": {
				"to-contain": [
					"<div id=\"smw-types\" class=\"smw-tabs smw-types\"><input id=\"tab-smw-type-list\" class=\"nav-tab\" type=\"radio\" name=\"types\" checked=\"\"/>",
					"<p class=\"plainlinks smw-types-intro\">"
				]
			}
		},
		{
			"type": "special",
			"about": "#1 (Monolingual text)",
			"special-page": {
				"page": "Types",
				"query-parameters": "Monolingual text",
				"request-parameters": []
			},
			"assert-output": {
				"to-contain": [
					"<div class=\"smw-breadcrumb-link\"><span class=\"smw-breadcrumb-arrow-right\">",
					"<a href=\".*Has_monolingual_text\" title=\".*Has monolingual text\">"
				]
			}
		},
		{
			"type": "special",
			"about": "#2 (Foobar, unknown)",
			"special-page": {
				"page": "Types",
				"query-parameters": "Foobar",
				"request-parameters": []
			},
			"assert-output": {
				"to-contain": [
					"<div class=\"plainlinks smw-type-unknown\">"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"wgLanguageCode": "en",
		"smwgNamespace": "http://example.org/id/",
		"smwgPageSpecialProperties": [
			"_MDAT"
		],
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}