]> source.dussan.org Git - sonarqube.git/blob
cb4aa6e79b99ee27df06a3358f211e3ae2a04d53
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <Tooltip
5   overlay={
6     <div
7       className="small nowrap"
8     >
9       <div />
10     </div>
11   }
12 >
13   <div
14     aria-label="
15         shortcuts.on_page.intro
16         
17         
18         
19         
20       "
21     className="page-shortcuts-tooltip note text-center display-inline-block"
22   >
23     <div>
24       <span
25         className="shortcut-button shortcut-button-tiny"
26       >
27         ↑
28       </span>
29     </div>
30     <div>
31       <span
32         className="shortcut-button shortcut-button-tiny"
33       >
34         ←
35       </span>
36       <span
37         className="shortcut-button shortcut-button-tiny"
38       >
39         ↓
40       </span>
41       <span
42         className="shortcut-button shortcut-button-tiny"
43       >
44         →
45       </span>
46     </div>
47   </div>
48 </Tooltip>
49 `;
50
51 exports[`should render correctly: only left label 1`] = `
52 <Tooltip
53   overlay={
54     <div
55       className="small nowrap"
56     >
57       <div>
58         <span
59           className=""
60         >
61           <span
62             className="shortcut-button spacer-right"
63           >
64             ←
65           </span>
66           baz
67         </span>
68       </div>
69     </div>
70   }
71 >
72   <div
73     aria-label="
74         shortcuts.on_page.intro
75         
76         
77         shortcuts.on_page.left_x.baz
78         
79       "
80     className="page-shortcuts-tooltip note text-center display-inline-block"
81   >
82     <div>
83       <span
84         className="shortcut-button shortcut-button-tiny"
85       >
86         ↑
87       </span>
88     </div>
89     <div>
90       <span
91         className="shortcut-button shortcut-button-tiny"
92       >
93         ←
94       </span>
95       <span
96         className="shortcut-button shortcut-button-tiny"
97       >
98         ↓
99       </span>
100       <span
101         className="shortcut-button shortcut-button-tiny"
102       >
103         →
104       </span>
105     </div>
106   </div>
107 </Tooltip>
108 `;
109
110 exports[`should render correctly: with meta label 1`] = `
111 <Tooltip
112   overlay={
113     <div
114       className="small nowrap"
115     >
116       <div />
117       <div
118         className="big-spacer-top big-padded-top bordered-top"
119       >
120         <span
121           className="shortcut-button little-spacer-right"
122         >
123           alt
124         </span>
125         <span
126           className="little-spacer-right"
127         >
128           +
129         </span>
130         <span
131           className="shortcut-button little-spacer-right"
132         >
133           ↑
134         </span>
135         <span
136           className="shortcut-button spacer-right"
137         >
138           ↓
139         </span>
140         <span
141           className="shortcut-button little-spacer-right"
142         >
143           ←
144         </span>
145         <span
146           className="shortcut-button spacer-right"
147         >
148           →
149         </span>
150         funky
151       </div>
152     </div>
153   }
154 >
155   <div
156     aria-label="
157         shortcuts.on_page.intro
158         
159         
160         
161         shortcuts.on_page.meta_x.funky
162       "
163     className="page-shortcuts-tooltip note text-center display-inline-block"
164   >
165     <div>
166       <span
167         className="shortcut-button shortcut-button-tiny"
168       >
169         ↑
170       </span>
171     </div>
172     <div>
173       <span
174         className="shortcut-button shortcut-button-tiny"
175       >
176         ←
177       </span>
178       <span
179         className="shortcut-button shortcut-button-tiny"
180       >
181         ↓
182       </span>
183       <span
184         className="shortcut-button shortcut-button-tiny"
185       >
186         →
187       </span>
188     </div>
189   </div>
190 </Tooltip>
191 `;
192
193 exports[`should render correctly: with up/down and left/right labels 1`] = `
194 <Tooltip
195   overlay={
196     <div
197       className="small nowrap"
198     >
199       <div>
200         <span>
201           <span
202             className="shortcut-button little-spacer-right"
203           >
204             ↑
205           </span>
206           <span
207             className="shortcut-button spacer-right"
208           >
209             ↓
210           </span>
211           foo
212         </span>
213         <span
214           className="big-spacer-left"
215         >
216           <span
217             className="shortcut-button little-spacer-right"
218           >
219             ←
220           </span>
221           <span
222             className="shortcut-button spacer-right"
223           >
224             →
225           </span>
226           bar
227         </span>
228       </div>
229     </div>
230   }
231 >
232   <div
233     aria-label="
234         shortcuts.on_page.intro
235         shortcuts.on_page.up_down_x.foo
236         shortcuts.on_page.left_right_x.bar
237         
238         
239       "
240     className="page-shortcuts-tooltip note text-center display-inline-block"
241   >
242     <div>
243       <span
244         className="shortcut-button shortcut-button-tiny"
245       >
246         ↑
247       </span>
248     </div>
249     <div>
250       <span
251         className="shortcut-button shortcut-button-tiny"
252       >
253         ←
254       </span>
255       <span
256         className="shortcut-button shortcut-button-tiny"
257       >
258         ↓
259       </span>
260       <span
261         className="shortcut-button shortcut-button-tiny"
262       >
263         →
264       </span>
265     </div>
266   </div>
267 </Tooltip>
268 `;