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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{
"description": "Test in-text annotation for `_dat` using JL/GR annotated values (en, `smwgDVFeatures`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has date",
"contents": "[[Has type::Date]]"
},
{
"page": "Example/P0420/1",
"contents": "[[Has date::21 March 1685 JL]]"
},
{
"page": "Example/P0420/2",
"contents": "[[Has date::21 March 1685 Jl]]"
},
{
"page": "Example/P0420/3",
"contents": "[[Has date::21 March 1685 GR]]"
},
{
"page": "Example/P0420/1a",
"contents": "{{#ask: [[Example/P0420/1]] |?Has date |?Has date#GR |?Has date#JL }}"
},
{
"page": "Example/P0420/2a",
"contents": "{{#ask: [[Example/P0420/2]] |?Has date |?Has date#GR |?Has date#JL }}"
},
{
"page": "Example/P0420/3a",
"contents": "{{#ask: [[Example/P0420/3]] |?Has date |?Has date#GR |?Has date#JL }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 JL calendar date with time",
"subject": "Example/P0420/1",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"Has_date",
"_SKEY",
"_MDAT"
],
"propertyValues": [
"1685-03-31"
]
}
},
"assert-output": {
"to-contain": [
"21 March 1685 JL"
]
}
},
{
"type": "parser",
"about": "#1 JL",
"subject": "Example/P0420/1a",
"assert-output": {
"to-contain": [
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336583.5\">21 March 1685 <sup>JL</sup></td>",
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336583.5\">31 March 1685</td>",
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336583.5\">21 March 1685 <sup>JL</sup></td>"
]
}
},
{
"type": "parser",
"about": "#2 JL",
"subject": "Example/P0420/2a",
"assert-output": {
"to-contain": [
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336583.5\">21 March 1685 <sup>JL</sup></td>",
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336583.5\">31 March 1685</td>",
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336583.5\">21 March 1685 <sup>JL</sup></td>"
]
}
},
{
"type": "parser",
"about": "#3 GR",
"subject": "Example/P0420/3a",
"assert-output": {
"to-contain": [
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336573.5\">21 March 1685</td>",
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336573.5\">21 March 1685</td>",
"<td class=\"Has-date smwtype_dat\" data-sort-value=\"2336573.5\">11 March 1685 <sup>JL</sup></td>"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"smwgDVFeatures": [
"SMW_DV_TIMEV_CM"
]
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|