Skip to content

Commit 98fdf7e

Browse files
update tab.test.js.snap
1 parent c3a0bb1 commit 98fdf7e

File tree

1 file changed

+199
-0
lines changed

1 file changed

+199
-0
lines changed

src/tab/__snapshots__/tab.test.js.snap

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,204 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3+
exports[`tab structure with custom tab component : default options 1`] = `
4+
<div>
5+
<li
6+
aria-controls="rc-dyn-tabs-p-1"
7+
aria-expanded={true}
8+
aria-labelledby="rc-dyn-tabs-l-1"
9+
aria-selected={true}
10+
className="rc-dyn-tabs-tab rc-dyn-tabs-selected"
11+
onClick={[Function]}
12+
role="tab"
13+
tab-id="1"
14+
tabIndex={0}
15+
>
16+
<button
17+
className="rc-dyn-tabs-title"
18+
id="rc-dyn-tabs-l-1"
19+
role="presentation"
20+
tab-id="1"
21+
tabIndex={-1}
22+
title="tab1 tootltip"
23+
>
24+
tab1
25+
</button>
26+
</li>
27+
<li
28+
aria-controls="rc-dyn-tabs-p-2"
29+
aria-expanded={false}
30+
aria-labelledby="rc-dyn-tabs-l-2"
31+
aria-selected={false}
32+
className="rc-dyn-tabs-tab"
33+
onClick={[Function]}
34+
role="tab"
35+
tab-id="2"
36+
tabIndex={-1}
37+
>
38+
<button
39+
className="rc-dyn-tabs-title"
40+
id="rc-dyn-tabs-l-2"
41+
role="presentation"
42+
tab-id="2"
43+
tabIndex={-1}
44+
title=""
45+
>
46+
tab2
47+
<span
48+
className="rc-dyn-tabs-icon ui-icon ui-icon-disk"
49+
role="presentation"
50+
/>
51+
</button>
52+
<span
53+
className="rc-dyn-tabs-close"
54+
role="presentation"
55+
>
56+
×
57+
</span>
58+
</li>
59+
<li
60+
aria-controls="rc-dyn-tabs-p-3"
61+
aria-expanded={false}
62+
aria-labelledby="rc-dyn-tabs-l-3"
63+
aria-selected={false}
64+
className="rc-dyn-tabs-tab rc-dyn-tabs-disable"
65+
onClick={[Function]}
66+
role="tab"
67+
tab-id="3"
68+
tabIndex={-1}
69+
>
70+
<button
71+
className="rc-dyn-tabs-title"
72+
id="rc-dyn-tabs-l-3"
73+
role="presentation"
74+
tab-id="3"
75+
tabIndex={-1}
76+
title=""
77+
>
78+
tab3
79+
</button>
80+
<span
81+
className="rc-dyn-tabs-close"
82+
role="presentation"
83+
>
84+
×
85+
</span>
86+
</li>
87+
<li
88+
aria-controls="rc-dyn-tabs-p-4"
89+
aria-expanded={false}
90+
aria-labelledby="rc-dyn-tabs-l-4"
91+
aria-selected={false}
92+
className="rc-dyn-tabs-tab"
93+
onClick={[Function]}
94+
role="tab"
95+
tab-id="4"
96+
tabIndex={-1}
97+
>
98+
<button
99+
className="rc-dyn-tabs-title"
100+
id="rc-dyn-tabs-l-4"
101+
role="presentation"
102+
tab-id="4"
103+
tabIndex={-1}
104+
title=""
105+
>
106+
tab4
107+
</button>
108+
<span
109+
className="rc-dyn-tabs-close"
110+
role="presentation"
111+
>
112+
×
113+
</span>
114+
</li>
115+
</div>
116+
`;
117+
118+
exports[`tab structure with custom tab component : rtl and none accessibility options 1`] = `
119+
<div>
120+
<li
121+
className="rc-dyn-tabs-tab rc-dyn-tabs-selected"
122+
onClick={[Function]}
123+
tab-id="1"
124+
tabIndex={0}
125+
>
126+
<button
127+
className="rc-dyn-tabs-title"
128+
tab-id="1"
129+
tabIndex={-1}
130+
title="tab1 tootltip"
131+
>
132+
tab1
133+
</button>
134+
</li>
135+
<li
136+
className="rc-dyn-tabs-tab"
137+
onClick={[Function]}
138+
tab-id="2"
139+
tabIndex={-1}
140+
>
141+
<button
142+
className="rc-dyn-tabs-title"
143+
tab-id="2"
144+
tabIndex={-1}
145+
title=""
146+
>
147+
tab2
148+
<span
149+
className="rc-dyn-tabs-icon ui-icon ui-icon-disk"
150+
role="presentation"
151+
/>
152+
</button>
153+
<span
154+
className="rc-dyn-tabs-close"
155+
>
156+
×
157+
</span>
158+
</li>
159+
<li
160+
className="rc-dyn-tabs-tab rc-dyn-tabs-disable"
161+
onClick={[Function]}
162+
tab-id="3"
163+
tabIndex={-1}
164+
>
165+
<button
166+
className="rc-dyn-tabs-title"
167+
tab-id="3"
168+
tabIndex={-1}
169+
title=""
170+
>
171+
tab3
172+
</button>
173+
<span
174+
className="rc-dyn-tabs-close"
175+
>
176+
×
177+
</span>
178+
</li>
179+
<li
180+
className="rc-dyn-tabs-tab"
181+
onClick={[Function]}
182+
tab-id="4"
183+
tabIndex={-1}
184+
>
185+
<button
186+
className="rc-dyn-tabs-title"
187+
tab-id="4"
188+
tabIndex={-1}
189+
title=""
190+
>
191+
tab4
192+
</button>
193+
<span
194+
className="rc-dyn-tabs-close"
195+
>
196+
×
197+
</span>
198+
</li>
199+
</div>
200+
`;
201+
3202
exports[`tab structure with default options : default tab data 1`] = `
4203
<div>
5204
<li

0 commit comments

Comments
 (0)