]> source.dussan.org Git - sonarqube.git/blob
f57804837fd04d94dade6e0cd5cea271f3886230
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render properly 1`] = `
4 <svg
5   className="measure-details-treemap-legend"
6   height={20}
7   width={200}
8 >
9   <defs>
10     <linearGradient
11       id="gradient-legend"
12     >
13       <stop
14         key="0"
15         offset={0}
16         stopColor="#00aa00"
17       />
18       <stop
19         key="1"
20         offset={0.25}
21         stopColor="#b0d513"
22       />
23       <stop
24         key="2"
25         offset={0.5}
26         stopColor="#eabe06"
27       />
28       <stop
29         key="3"
30         offset={0.75}
31         stopColor="#ed7d20"
32       />
33       <stop
34         key="4"
35         offset={1}
36         stopColor="#D02F3A"
37       />
38     </linearGradient>
39     <pattern
40       height="30"
41       id="stripes"
42       patternTransform="rotate(45 0 0)"
43       patternUnits="userSpaceOnUse"
44       width="30"
45     >
46       <line
47         style={
48           {
49             "stroke": "#b4b4b4",
50             "strokeWidth": 4,
51           }
52         }
53         x1={0}
54         x2={0}
55         y1="0"
56         y2="30"
57       />
58       <line
59         style={
60           {
61             "stroke": "#888",
62             "strokeWidth": 4,
63           }
64         }
65         x1={4}
66         x2={4}
67         y1="0"
68         y2="30"
69       />
70       <line
71         style={
72           {
73             "stroke": "#b4b4b4",
74             "strokeWidth": 4,
75           }
76         }
77         x1={8}
78         x2={8}
79         y1="0"
80         y2="30"
81       />
82       <line
83         style={
84           {
85             "stroke": "#888",
86             "strokeWidth": 4,
87           }
88         }
89         x1={12}
90         x2={12}
91         y1="0"
92         y2="30"
93       />
94       <line
95         style={
96           {
97             "stroke": "#b4b4b4",
98             "strokeWidth": 4,
99           }
100         }
101         x1={16}
102         x2={16}
103         y1="0"
104         y2="30"
105       />
106       <line
107         style={
108           {
109             "stroke": "#888",
110             "strokeWidth": 4,
111           }
112         }
113         x1={20}
114         x2={20}
115         y1="0"
116         y2="30"
117       />
118       <line
119         style={
120           {
121             "stroke": "#b4b4b4",
122             "strokeWidth": 4,
123           }
124         }
125         x1={24}
126         x2={24}
127         y1="0"
128         y2="30"
129       />
130       <line
131         style={
132           {
133             "stroke": "#888",
134             "strokeWidth": 4,
135           }
136         }
137         x1={28}
138         x2={28}
139         y1="0"
140         y2="30"
141       />
142     </pattern>
143   </defs>
144   <g
145     transform="translate(0, 12)"
146   >
147     <rect
148       fill="url(#gradient-legend)"
149       height={8}
150       width={176}
151       x={0}
152       y={0}
153     />
154     <text
155       className="gradient-legend-text"
156       dy="-2px"
157       key="0"
158       x={0}
159       y={0}
160     >
161       0
162     </text>
163     <text
164       className="gradient-legend-text"
165       dy="-2px"
166       key="1"
167       x={44}
168       y={0}
169     >
170       25
171     </text>
172     <text
173       className="gradient-legend-text"
174       dy="-2px"
175       key="2"
176       x={88}
177       y={0}
178     >
179       50
180     </text>
181     <text
182       className="gradient-legend-text"
183       dy="-2px"
184       key="3"
185       x={132}
186       y={0}
187     >
188       75
189     </text>
190     <text
191       className="gradient-legend-text"
192       dy="-2px"
193       key="4"
194       x={176}
195       y={0}
196     >
197       100
198     </text>
199   </g>
200   <g
201     transform="translate(176, 12)"
202   >
203     <rect
204       fill="url(#stripes)"
205       height={8}
206       width={20}
207       x={4}
208       y={0}
209     />
210     <text
211       className="gradient-legend-na"
212       dy="-2px"
213       x={14}
214       y={0}
215     >
216       N/A
217     </text>
218   </g>
219 </svg>
220 `;