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
|
{
"description": "Test `Special:Ask` common output (`wgContLang=en`, `wgLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has page",
"contents": "[[Has type::Page]]"
},
{
"namespace": "NS_MAIN",
"page": "Example/S0018/1",
"contents": "[[Has page::123]] [[Category:S0018]]"
}
],
"tests": [
{
"type": "special",
"about": "#0 (noscript)",
"special-page": {
"page": "Ask",
"query-parameters": [],
"request-parameters": {}
},
"assert-output": {
"to-contain": [
"<div id=\"ask-status\" class=\"smw-ask-status plainlinks\"><noscript><div class=\"smw-callout smw-callout-error\">"
]
}
},
{
"type": "special",
"about": "#1 (@see #3542, `format= table`)",
"special-page": {
"page": "Ask",
"query-parameters": "-5B-5BCategory:S0018-5D-5D/-3FHas-20page/mainlabel%3D/offset%3D0/format%3D-20table",
"request-parameters": {}
},
"assert-output": {
"to-contain": [
"{{#ask: [[Category:S0018]]",
" |?Has page",
" |format=table",
" |limit=50",
" |offset=0",
" |sort=",
" |order=asc",
" |mainlabel=",
"}}"
]
}
},
{
"type": "special",
"about": "#2 (`format=TABLE`)",
"special-page": {
"page": "Ask",
"query-parameters": "-5B-5BCategory:S0018-5D-5D/-3FHas-20page/mainlabel%3D/offset%3D0/format%3DTABLE",
"request-parameters": {}
},
"assert-output": {
"to-contain": [
"{{#ask: [[Category:S0018]]",
" |?Has page",
" |format=table",
" |limit=50",
" |offset=0",
" |sort=",
" |order=asc",
" |mainlabel=",
"}}"
]
}
}
],
"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
}
}
|