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
|
{
"description": "Test that undeclared properties with references remain after a `rebuildData` run (#1216, en)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has number",
"contents": "[[Has type::Number]]"
},
{
"page": "Test/P0207",
"contents": "{{#set:Has number=12}} {{#set:Undeclared property=abc}} [[Undeclared prop::P0207]]"
},
{
"namespace": "NS_HELP",
"page": "Test/P0207/1",
"contents": "{{:Test/P0207}}"
}
],
"beforeTest": {
"maintenance-run": {
"rebuildData": true
}
},
"tests": [
{
"type": "parser",
"about": "#0 Rebuild + clear cache to verify that the disposer (#1216) didn't remove undeclared properties that still contain references",
"subject": "Test/P0207",
"store": {
"clear-cache": true
},
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 5,
"propertyKeys": [
"Has_number",
"_ERRP",
"_SKEY",
"_MDAT",
"Undeclared_property",
"Undeclared_prop"
],
"propertyValues": [
12,
"Abc",
"P0207"
]
}
}
},
{
"type": "parser",
"about": "#1 embedded page on disabled namespace",
"namespace": "NS_HELP",
"subject": "Test/P0207/1",
"store": {
"clear-cache": true
},
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 0
}
},
"assert-output": {
"to-contain": [
"<a href=\".* title=\"P0207.*\">P0207</a>"
]
}
}
],
"settings": {
"wgContLang": "en",
"smwgPageSpecialProperties": [
"_MDAT"
],
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"NS_HELP": false,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|