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
|
{
"description": "Test `format=table` on `Special:Ask` with `headers=plain` (#2702, `wgContLang=en`, `wgLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has extra text",
"contents": "[[Has type::Text]]"
},
{
"page": "Example/S0021/1",
"contents": "[[Has extra text::S0021]]"
},
{
"page": "Example/S0021/2",
"contents": "[[Has extra text::S0021]]"
}
],
"tests": [
{
"type": "special",
"about": "#0 with headers",
"special-page": {
"page": "Ask",
"request-parameters": {
"p": {
"limit": "10",
"offset": "0",
"headers": "",
"format": "table"
},
"q": "[[Has extra text::S0021]]",
"po": "?Has extra text=Modified <i>label</i> for text"
}
},
"assert-output": {
"to-contain": [
"<thead><th> </th><th class=\"Modified-label-for-text\"><a href=.* title=\"Property:Has extra text\">Modified <i>label</i> for text</a></th></thead>",
"<a href=.* title=\"Example/S0021/1\">Example/S0021/1</a>",
"<a href=.* title=\"Example/S0021/2\">Example/S0021/2</a>"
]
}
},
{
"type": "special",
"about": "#1 with headers plain",
"special-page": {
"page": "Ask",
"request-parameters": {
"p": {
"limit": "10",
"offset": "0",
"headers": "plain",
"format": "table"
},
"q": "[[Has extra text::S0021]]",
"po": "?Has extra text=Modified <i>label</i> for text"
}
},
"assert-output": {
"to-contain": [
"<thead><th> </th><th class=\"Modified-label-for-text\">Modified <i>label</i> for text</th></thead>",
"<a href=.* title=\"Example/S0021/1\">Example/S0021/1</a>",
"<a href=.* title=\"Example/S0021/2\">Example/S0021/2</a>"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|