Skip to content

Commit be550ff

Browse files
committed
Generated command macro tests.
1 parent 37a6dce commit be550ff

26 files changed

Lines changed: 56188 additions & 0 deletions
Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
{
2+
"name": "action action-macros table test",
3+
"factory": "parserTest",
4+
"packages": [
5+
"base",
6+
"action"
7+
],
8+
"tests": {
9+
"toggle": {
10+
"input": "\\toggle{A}{B}\\endtoggle",
11+
"expected": [
12+
{
13+
"kind": "math",
14+
"texClass": 0,
15+
"attributes": {
16+
"display": "block"
17+
},
18+
"inherited": {
19+
"displaystyle": true,
20+
"scriptlevel": 0
21+
},
22+
"properties": {},
23+
"childNodes": [
24+
{
25+
"kind": "mrow",
26+
"texClass": 0,
27+
"attributes": {},
28+
"inherited": {
29+
"displaystyle": true,
30+
"scriptlevel": 0
31+
},
32+
"properties": {},
33+
"childNodes": [
34+
{
35+
"kind": "maction",
36+
"texClass": 0,
37+
"attributes": {},
38+
"inherited": {
39+
"displaystyle": true,
40+
"scriptlevel": 0
41+
},
42+
"properties": {},
43+
"childNodes": [
44+
{
45+
"kind": "mi",
46+
"texClass": 0,
47+
"attributes": {},
48+
"inherited": {
49+
"displaystyle": true,
50+
"scriptlevel": 0,
51+
"mathvariant": "italic"
52+
},
53+
"properties": {},
54+
"childNodes": [
55+
{
56+
"kind": "text",
57+
"text": "A"
58+
}
59+
]
60+
},
61+
{
62+
"kind": "mi",
63+
"texClass": 0,
64+
"attributes": {},
65+
"inherited": {
66+
"displaystyle": true,
67+
"scriptlevel": 0,
68+
"mathvariant": "italic"
69+
},
70+
"properties": {},
71+
"childNodes": [
72+
{
73+
"kind": "text",
74+
"text": "B"
75+
}
76+
]
77+
}
78+
]
79+
}
80+
],
81+
"isInferred": true
82+
}
83+
]
84+
},
85+
false
86+
]
87+
},
88+
"mathtip": {
89+
"input": "\\mathtip{A}{B}",
90+
"expected": {
91+
"kind": "math",
92+
"texClass": 0,
93+
"attributes": {
94+
"display": "block"
95+
},
96+
"inherited": {
97+
"displaystyle": true,
98+
"scriptlevel": 0
99+
},
100+
"properties": {},
101+
"childNodes": [
102+
{
103+
"kind": "mrow",
104+
"texClass": 0,
105+
"attributes": {},
106+
"inherited": {
107+
"displaystyle": true,
108+
"scriptlevel": 0
109+
},
110+
"properties": {},
111+
"childNodes": [
112+
{
113+
"kind": "maction",
114+
"texClass": 0,
115+
"attributes": {
116+
"actiontype": "tooltip"
117+
},
118+
"inherited": {
119+
"displaystyle": true,
120+
"scriptlevel": 0
121+
},
122+
"properties": {},
123+
"childNodes": [
124+
{
125+
"kind": "mi",
126+
"texClass": 0,
127+
"attributes": {},
128+
"inherited": {
129+
"displaystyle": true,
130+
"scriptlevel": 0,
131+
"mathvariant": "italic"
132+
},
133+
"properties": {},
134+
"childNodes": [
135+
{
136+
"kind": "text",
137+
"text": "A"
138+
}
139+
]
140+
},
141+
{
142+
"kind": "mi",
143+
"texClass": 0,
144+
"attributes": {},
145+
"inherited": {
146+
"displaystyle": true,
147+
"scriptlevel": 0,
148+
"mathvariant": "italic"
149+
},
150+
"properties": {},
151+
"childNodes": [
152+
{
153+
"kind": "text",
154+
"text": "B"
155+
}
156+
]
157+
}
158+
]
159+
}
160+
],
161+
"isInferred": true
162+
}
163+
]
164+
}
165+
},
166+
"texttip": {
167+
"input": "\\texttip{A}{B}",
168+
"expected": {
169+
"kind": "math",
170+
"texClass": 0,
171+
"attributes": {
172+
"display": "block"
173+
},
174+
"inherited": {
175+
"displaystyle": true,
176+
"scriptlevel": 0
177+
},
178+
"properties": {},
179+
"childNodes": [
180+
{
181+
"kind": "mrow",
182+
"texClass": 0,
183+
"attributes": {},
184+
"inherited": {
185+
"displaystyle": true,
186+
"scriptlevel": 0
187+
},
188+
"properties": {},
189+
"childNodes": [
190+
{
191+
"kind": "maction",
192+
"texClass": 0,
193+
"attributes": {
194+
"actiontype": "tooltip"
195+
},
196+
"inherited": {
197+
"displaystyle": true,
198+
"scriptlevel": 0
199+
},
200+
"properties": {},
201+
"childNodes": [
202+
{
203+
"kind": "mi",
204+
"texClass": 0,
205+
"attributes": {},
206+
"inherited": {
207+
"displaystyle": true,
208+
"scriptlevel": 0,
209+
"mathvariant": "italic"
210+
},
211+
"properties": {},
212+
"childNodes": [
213+
{
214+
"kind": "text",
215+
"text": "A"
216+
}
217+
]
218+
},
219+
{
220+
"kind": "mtext",
221+
"texClass": 0,
222+
"attributes": {},
223+
"inherited": {
224+
"displaystyle": true,
225+
"scriptlevel": 0
226+
},
227+
"properties": {},
228+
"childNodes": [
229+
{
230+
"kind": "text",
231+
"text": "B"
232+
}
233+
],
234+
"isSpacelike": true
235+
}
236+
]
237+
}
238+
],
239+
"isInferred": true
240+
}
241+
]
242+
}
243+
}
244+
}
245+
}

0 commit comments

Comments
 (0)