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
|
{
"description": "Tree format: Simple one-page result",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has parent",
"contents": "[[Has type::Page]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Part of",
"contents": "[[Has type::Text]]"
},
{
"namespace": "NS_TEMPLATE",
"page": "Example/Tree format template",
"contents": "FOO{{{1|}}}BAR"
},
{
"page": "Example/Tree 1",
"contents": "[[Part of::Tree test]]"
},
{
"page": "Example/Tree 02-01",
"contents": "{{#ask:[[Part of::Tree test]]|format=tree|parent=Has parent}}"
},
{
"page": "Example/Tree 02-02",
"contents": "{{#ask:[[Part of::Tree test]]|format=tree|parent=Has parent|template=Example/Tree format template }}"
}
],
"tests": [
{
"type": "parser-html",
"about": "Tree 02-01 (Simple one-page result)",
"subject": "Example/Tree 02-01",
"assert-output": {
"to-contain": [
"div.srf-tree > ul > li:only-child > a[title=\"Example/Tree 1\"]:only-child"
]
}
},
{
"type": "parser-html",
"about": "Tree 02-02-1 (Simple one-page result with template - structure)",
"subject": "Example/Tree 02-02",
"assert-output": {
"to-contain": [
"div.srf-tree > ul > li:only-child > a[title=\"Example/Tree 1\"]:only-child"
]
}
},
{
"type": "parser",
"about": "Tree 02-02-2 (Simple one-page result with template - content)",
"subject": "Example/Tree 02-02",
"assert-output": {
"to-contain": [
"FOO.*Example/Tree 1.*BAR"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|