Skip to content

Commit ab361ba

Browse files
committed
(fluent/test) Update test fixtures
1 parent c7b1ae9 commit ab361ba

21 files changed

+714
-315
lines changed

fluent/test/fixtures_reference/call_expressions.json

Lines changed: 115 additions & 191 deletions
Large diffs are not rendered by default.
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
{
2+
"function-callee-placeable": [
3+
{
4+
"type": "ref",
5+
"name": "FUNCTION",
6+
"attr": null,
7+
"args": []
8+
}
9+
],
10+
"term-callee-placeable": [
11+
{
12+
"type": "term",
13+
"name": "term",
14+
"attr": null,
15+
"args": []
16+
}
17+
],
18+
"message-callee-placeable": [
19+
{
20+
"type": "ref",
21+
"name": "message",
22+
"attr": null,
23+
"args": []
24+
}
25+
],
26+
"mixed-case-callee-placeable": [
27+
{
28+
"type": "ref",
29+
"name": "Function",
30+
"attr": null,
31+
"args": []
32+
}
33+
],
34+
"message-attr-callee-placeable": [
35+
{
36+
"type": "ref",
37+
"name": "message",
38+
"attr": "attr",
39+
"args": []
40+
}
41+
],
42+
"term-attr-callee-placeable": [
43+
{
44+
"type": "term",
45+
"name": "term",
46+
"attr": "attr",
47+
"args": []
48+
}
49+
],
50+
"variable-callee-placeable": [
51+
{
52+
"type": "var",
53+
"name": "variable",
54+
"attr": null,
55+
"args": []
56+
}
57+
],
58+
"function-callee-selector": [
59+
{
60+
"type": "select",
61+
"selector": {
62+
"type": "ref",
63+
"name": "FUNCTION",
64+
"attr": null,
65+
"args": []
66+
},
67+
"variants": [
68+
{
69+
"key": "key",
70+
"value": "Value"
71+
}
72+
],
73+
"star": 0
74+
}
75+
],
76+
"term-attr-callee-selector": [
77+
{
78+
"type": "select",
79+
"selector": {
80+
"type": "term",
81+
"name": "term",
82+
"attr": "attr",
83+
"args": []
84+
},
85+
"variants": [
86+
{
87+
"key": "key",
88+
"value": "Value"
89+
}
90+
],
91+
"star": 0
92+
}
93+
],
94+
"message-callee-selector": [
95+
{
96+
"type": "select",
97+
"selector": {
98+
"type": "ref",
99+
"name": "message",
100+
"attr": null,
101+
"args": []
102+
},
103+
"variants": [
104+
{
105+
"key": "key",
106+
"value": "Value"
107+
}
108+
],
109+
"star": 0
110+
}
111+
],
112+
"mixed-case-callee-selector": [
113+
{
114+
"type": "select",
115+
"selector": {
116+
"type": "ref",
117+
"name": "Function",
118+
"attr": null,
119+
"args": []
120+
},
121+
"variants": [
122+
{
123+
"key": "key",
124+
"value": "Value"
125+
}
126+
],
127+
"star": 0
128+
}
129+
],
130+
"message-attr-callee-selector": [
131+
{
132+
"type": "select",
133+
"selector": {
134+
"type": "ref",
135+
"name": "message",
136+
"attr": "attr",
137+
"args": []
138+
},
139+
"variants": [
140+
{
141+
"key": "key",
142+
"value": "Value"
143+
}
144+
],
145+
"star": 0
146+
}
147+
],
148+
"term-callee-selector": [
149+
{
150+
"type": "select",
151+
"selector": {
152+
"type": "term",
153+
"name": "term",
154+
"attr": null,
155+
"args": []
156+
},
157+
"variants": [
158+
{
159+
"key": "key",
160+
"value": "Value"
161+
}
162+
],
163+
"star": 0
164+
}
165+
],
166+
"variable-callee-selector": [
167+
{
168+
"type": "select",
169+
"selector": {
170+
"type": "var",
171+
"name": "variable",
172+
"attr": null,
173+
"args": []
174+
},
175+
"variants": [
176+
{
177+
"key": "key",
178+
"value": "Value"
179+
}
180+
],
181+
"star": 0
182+
}
183+
]
184+
}

fluent/test/fixtures_reference/cr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"type": "select",
1818
"selector": {
1919
"type": "var",
20-
"name": "sel"
20+
"name": "sel",
21+
"attr": null,
22+
"args": null
2123
}
2224
}
2325
]

fluent/test/fixtures_reference/crlf.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"type": "select",
1616
"selector": {
1717
"type": "var",
18-
"name": "sel"
18+
"name": "sel",
19+
"attr": null,
20+
"args": null
1921
}
2022
}
2123
]

fluent/test/fixtures_reference/escaped_characters.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"Value with \\",
66
{
77
"type": "ref",
8-
"name": "placeable"
8+
"name": "placeable",
9+
"attr": null,
10+
"args": null
911
}
1012
],
1113
"text-backslash-u": "\\u0041",
Lines changed: 90 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,102 @@
11
{
2-
"variant-expression": [
2+
"message-attribute-expression-placeable": [
33
{
4-
"type": "getvar",
5-
"ref": {
4+
"type": "ref",
5+
"name": "msg",
6+
"attr": "attr",
7+
"args": null
8+
}
9+
],
10+
"term-variant-expression-placeable": [
11+
{
12+
"type": "term",
13+
"name": "term",
14+
"selector": "case"
15+
}
16+
],
17+
"message-variant-expression-placeable": [
18+
{
19+
"type": "ref",
20+
"name": "msg",
21+
"selector": "case"
22+
}
23+
],
24+
"term-attribute-expression-placeable": [
25+
{
26+
"type": "term",
27+
"name": "term",
28+
"attr": "attr",
29+
"args": null
30+
}
31+
],
32+
"term-attribute-expression-selector": [
33+
{
34+
"type": "select",
35+
"selector": {
36+
"type": "term",
37+
"name": "term",
38+
"attr": "attr",
39+
"args": null
40+
},
41+
"variants": [
42+
{
43+
"key": "key",
44+
"value": "Value"
45+
}
46+
],
47+
"star": 0
48+
}
49+
],
50+
"message-attribute-expression-selector": [
51+
{
52+
"type": "select",
53+
"selector": {
654
"type": "ref",
7-
"name": "msg"
55+
"name": "msg",
56+
"attr": "attr",
57+
"args": null
858
},
9-
"selector": "case"
59+
"variants": [
60+
{
61+
"key": "key",
62+
"value": "Value"
63+
}
64+
],
65+
"star": 0
66+
}
67+
],
68+
"term-variant-expression-selector": [
69+
{
70+
"type": "select",
71+
"selector": {
72+
"type": "term",
73+
"name": "term",
74+
"selector": "case"
75+
},
76+
"variants": [
77+
{
78+
"key": "key",
79+
"value": "Value"
80+
}
81+
],
82+
"star": 0
1083
}
1184
],
12-
"attribute-expression": [
85+
"message-variant-expression-selector": [
1386
{
14-
"type": "getattr",
15-
"ref": {
87+
"type": "select",
88+
"selector": {
1689
"type": "ref",
17-
"name": "-term"
90+
"name": "msg",
91+
"selector": "case"
1892
},
19-
"name": "attr"
93+
"variants": [
94+
{
95+
"key": "key",
96+
"value": "Value"
97+
}
98+
],
99+
"star": 0
20100
}
21101
]
22102
}

fluent/test/fixtures_reference/messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"attr1": "Attribute 1"
2727
}
2828
},
29-
"key06": []
29+
"key06": [],
30+
"KEY09": "Value 09"
3031
}

0 commit comments

Comments
 (0)