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
|
{
"description": "Test `format=list` output",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has page property",
"contents": "[[Has type::Page]]"
},
{
"page": "Foo",
"contents": "[[Has page property::ABC]]"
},
{
"page": "Bar",
"contents": "[[Has page property::ABC]]"
},
{
"page": "Baz",
"contents": "[[Has page property::ABC]]"
},
{
"page": "Quok",
"contents": "[[Has page property::ABC]]"
},
{
"page": "Quuz",
"contents": "[[Has page property::DEF]]"
},
{
"page": "Example/0401",
"contents": "{{#ask:[[Has page property::ABC]] |format=list}}"
}
],
"tests": [
{
"type": "parser-html",
"about": "#0 Basic List format (structure)",
"subject": "Example/0401",
"assert-output": {
"to-be-valid-html": true,
"to-contain": [
[ "span.list-format > span.smw-row > span.smw-field > span.smw-value > a[title]", 4 ]
]
}
},
{
"type": "parser",
"about": "#1 Basic List format (order)",
"subject": "Example/0401",
"assert-output": {
"to-contain": [
"Bar.*Baz.*Foo.*Quok"
]
}
}
],
"settings": {
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|