Lines Matching refs:TestCase

54         struct TestCase {
55 TestCase(gchar const* src, gchar const* dst = 0, gchar const* uri = 0) : src(src), dst(dst), uri(uri) {}
61 TestCase cases[] = {
62 TestCase("fill:none"),
63 TestCase("fill:currentColor"),
64 TestCase("fill:#ff00ff"),
66 TestCase("fill:rgb(100%, 0%, 100%)", "fill:#ff00ff"),
68 TestCase("fill:url(#painter) rgb(100%, 0%, 100%)",
71 TestCase("fill:rgb(255, 0, 255)", "fill:#ff00ff"),
73 TestCase("fill:url(#painter) rgb(255, 0, 255)",
77 // TestCase("fill:#ff00ff icc-color(colorChange, 0.1, 0.5, 0.1)"),
79 TestCase("fill:url(#painter)", 0, "#painter"),
80 TestCase("fill:url(#painter) none", 0, "#painter"),
81 TestCase("fill:url(#painter) currentColor", 0, "#painter"),
82 TestCase("fill:url(#painter) #ff00ff", 0, "#painter"),
83 // TestCase("fill:url(#painter) rgb(100%, 0%, 100%)", 0, "#painter"),
84 // TestCase("fill:url(#painter) rgb(255, 0, 255)", 0, "#painter"),
86 TestCase("fill:url(#painter) #ff00ff icc-color(colorChange, 0.1, 0.5, 0.1)", 0, "#painter"),
88 // TestCase("fill:url(#painter) inherit", 0, "#painter"),
89 TestCase("fill:inherit"),
92 TestCase("visibility:hidden"), // SPIEnum
93 TestCase("visibility:collapse"),
94 TestCase("visibility:visible"),
95 TestCase("display:none"), // SPIEnum
96 TestCase("overflow:visible"), // SPIEnum
97 TestCase("overflow:auto"), // SPIEnum
99 TestCase("color:#ff0000"),
100 TestCase("color:blue", "color:#0000ff"),
101 // TestCase("color:currentColor"), SVG 1.1 does not allow color value 'currentColor'
104 TestCase("font:bold 12px Arial",
106 TestCase("font:bold 12px/24px 'Times New Roman'",
109 TestCase("font: 12pt/15pt sans-serif",
111 TestCase("font: 80% sans-serif",
113 TestCase("font: x-large/110% 'new century schoolbook', serif",
115 TestCase("font: bold italic large Palatino, serif",
117 TestCase("font: normal small-caps 120%/120% fantasy",
119 TestCase("font: condensed oblique 12pt 'Helvetica Neue', serif;",
122 TestCase("font-family:sans-serif"), // SPIString, text_private
123 TestCase("font-family:Arial"),
124 // TestCase("font-variant:normal;font-stretch:normal;-inkscape-font-specification:Nimbus Roman No9 L Bold Italic"),
127 TestCase("font-family:Georgia, 'Minion Web'","font-family:Georgia, \'Minion Web\'"),
128 TestCase("font-size:12", "font-size:12px"), // SPIFontSize
129 TestCase("font-size:12px"),
130 TestCase("font-size:12pt", "font-size:16px"),
131 TestCase("font-size:medium"),
132 TestCase("font-size:smaller"),
133 TestCase("font-style:italic"), // SPIEnum
134 TestCase("font-variant:small-caps"), // SPIEnum
135 TestCase("font-weight:100"), // SPIEnum
136 TestCase("font-weight:normal"),
137 TestCase("font-weight:bolder"),
138 TestCase("font-stretch:condensed"), // SPIEnum
140 TestCase("font-variant-ligatures:none"), // SPILigatures
141 TestCase("font-variant-ligatures:normal"),
142 TestCase("font-variant-ligatures:no-common-ligatures"),
143 TestCase("font-variant-ligatures:discretionary-ligatures"),
144 TestCase("font-variant-ligatures:historical-ligatures"),
145 TestCase("font-variant-ligatures:no-contextual"),
146 TestCase("font-variant-ligatures:common-ligatures", "font-variant-ligatures:normal"),
147 TestCase("font-variant-ligatures:contextual", "font-variant-ligatures:normal"),
148 TestCase("font-variant-ligatures:no-common-ligatures historical-ligatures"),
149 TestCase("font-variant-ligatures:historical-ligatures no-contextual"),
150 TestCase("font-variant-position:normal"),
151 TestCase("font-variant-position:sub"),
152 TestCase("font-variant-position:super"),
153 TestCase("font-variant-caps:normal"),
154 TestCase("font-variant-caps:small-caps"),
155 TestCase("font-variant-caps:all-small-caps"),
156 TestCase("font-variant-numeric:normal"),
157 TestCase("font-variant-numeric:lining-nums"),
158 TestCase("font-variant-numeric:oldstyle-nums"),
159 TestCase("font-variant-numeric:proportional-nums"),
160 TestCase("font-variant-numeric:tabular-nums"),
161 TestCase("font-variant-numeric:diagonal-fractions"),
162 TestCase("font-variant-numeric:stacked-fractions"),
163 TestCase("font-variant-numeric:ordinal"),
164 TestCase("font-variant-numeric:slashed-zero"),
165 TestCase("font-variant-numeric:tabular-nums slashed-zero"),
166 TestCase("font-variant-numeric:tabular-nums proportional-nums", "font-variant-numeric:proportional-nums"),
169 TestCase("text-indent:12em"), // SPILength?
170 TestCase("text-align:center"), // SPIEnum
176 // TestCase("text-decoration: underline",
178 // TestCase("text-decoration: overline underline",
181 TestCase("text-decoration: underline wavy #0000ff",
183 TestCase("text-decoration: double overline underline #ff0000",
187 TestCase("text-decoration-line: underline",
191 TestCase("text-decoration-style:solid"),
192 TestCase("text-decoration-style:dotted"),
195 TestCase("text-decoration-color:#ff00ff"),
198 TestCase("line-height:24px"), // SPILengthOrNormal
199 TestCase("line-height:1.5"),
200 TestCase("letter-spacing:2px"), // SPILengthOrNormal
201 TestCase("word-spacing:2px"), // SPILengthOrNormal
202 TestCase("word-spacing:normal"),
203 TestCase("text-transform:lowercase"), // SPIEnum
205 TestCase("baseline-shift:baseline"), // SPIBaselineShift
206 TestCase("baseline-shift:sub"),
207 TestCase("baseline-shift:12.5%"),
208 TestCase("baseline-shift:2px"),
210 TestCase("opacity:0.1"), // SPIScale24
212 TestCase("stroke-width:2px"), // SPILength
213 TestCase("stroke-linecap:round"), // SPIEnum
214 TestCase("stroke-linejoin:round"), // SPIEnum
215 TestCase("stroke-miterlimit:4"), // SPIFloat
216 TestCase("marker:url(#Arrow)"), // SPIString
217 TestCase("marker-start:url(#Arrow)"),
218 TestCase("marker-mid:url(#Arrow)"),
219 TestCase("marker-end:url(#Arrow)"),
220 TestCase("stroke-opacity:0.5"), // SPIScale24
221 TestCase("stroke-dasharray:0, 1, 0, 1"), // SPIDashArray
222 TestCase("stroke-dasharray:0 1 0 1","stroke-dasharray:0, 1, 0, 1"),
223 TestCase("stroke-dasharray:0 1 2 3","stroke-dasharray:0, 1, 2, 3"),
224 TestCase("stroke-dashoffset:13"), // SPILength
225 TestCase("stroke-dashoffset:10px"),
227 //TestCase("filter:url(#myfilter)"), // SPIFilter segfault in read
228 TestCase("filter:inherit"),
230 TestCase("opacity:0.1;fill:#ff0000;stroke:#0000ff;stroke-width:2px"),
231 TestCase("opacity:0.1;fill:#ff0000;stroke:#0000ff;stroke-width:2px;stroke-dasharray:1, 2, 3, 4;stroke-dashoffset:15"),
235 TestCase("paint-order:stroke"), // SPIPaintOrder
236 TestCase("paint-order:normal"),
237 TestCase("paint-order: markers stroke fill", "paint-order:markers stroke fill"),
240 TestCase(0)
271 struct TestCase {
272 TestCase(gchar const* src, gchar const* dst, bool match) :
279 TestCase cases[] = {
282 TestCase("stroke-miterlimit:4", "stroke-miterlimit:4", true ),
283 TestCase("stroke-miterlimit:4", "stroke-miterlimit:2", false),
284 TestCase("stroke-miterlimit:4", "", true ), // Default
287 TestCase("opacity:0.3", "opacity:0.3", true ),
288 TestCase("opacity:0.3", "opacity:0.6", false),
289 TestCase("opacity:1.0", "", true ), // Default
292 TestCase("text-indent:3", "text-indent:3", true ),
293 TestCase("text-indent:6", "text-indent:3", false),
294 TestCase("text-indent:6px", "text-indent:3", false),
295 TestCase("text-indent:1px", "text-indent:12pc", false),
296 TestCase("text-indent:2ex", "text-indent:2ex", false),
299 TestCase("letter-spacing:normal", "letter-spacing:normal", true ),
300 TestCase("letter-spacing:2", "letter-spacing:normal", false),
301 TestCase("letter-spacing:normal", "letter-spacing:2", false),
302 TestCase("letter-spacing:5px", "letter-spacing:5px", true ),
303 TestCase("letter-spacing:10px", "letter-spacing:5px", false),
304 TestCase("letter-spacing:10em", "letter-spacing:10em", false),
307 TestCase("text-anchor:start", "text-anchor:start", true ),
308 TestCase("text-anchor:start", "text-anchor:middle", false),
309 TestCase("text-anchor:start", "", true ), // Default
310 TestCase("text-anchor:start", "text-anchor:junk", true ), // Bad value
312 TestCase("font-weight:normal", "font-weight:400", true ),
313 TestCase("font-weight:bold", "font-weight:700", true ),
317 TestCase("font-family:Arial", "font-family:Arial", true ),
318 TestCase("font-family:A B", "font-family:A B", true ),
319 TestCase("font-family:A B", "font-family:A C", false),
321 // TestCase("font-family:sans-serif", "", true ), // Default
324 TestCase("color:blue", "color:blue", true ),
325 TestCase("color:blue", "color:red", false),
326 TestCase("color:red", "color:#ff0000", true ),
329 TestCase("fill:blue", "fill:blue", true ),
330 TestCase("fill:blue", "fill:red", false),
331 TestCase("fill:currentColor", "fill:currentColor", true ),
332 TestCase("fill:url(#xxx)", "fill:url(#xxx)", true ),
334 //TestCase("fill:url(#xxx)", "fill:url(#yyy)", false),
337 TestCase("paint-order:markers", "paint-order:markers", true ),
338 TestCase("paint-order:markers", "paint-order:stroke", false),
339 //TestCase("paint-order:fill stroke markers", "", true ), // Default
340 TestCase("paint-order:normal", "paint-order:normal", true ),
341 //TestCase("paint-order:fill stroke markers", "paint-order:normal", true ),
344 TestCase("stroke-dasharray:0 1 2 3","stroke-dasharray:0 1 2 3",true ),
345 TestCase("stroke-dasharray:0 1", "stroke-dasharray:0 2", false),
350 TestCase("font-size:12px", "font-size:12px", true ),
351 TestCase("font-size:12px", "font-size:24px", false),
352 TestCase("font-size:12ex", "font-size:24ex", false),
353 TestCase("font-size:medium", "font-size:medium", true ),
354 TestCase("font-size:medium", "font-size:large", false),
357 TestCase("baseline-shift:baseline", "baseline-shift:baseline", true ),
358 TestCase("baseline-shift:sub", "baseline-shift:sub", true ),
359 TestCase("baseline-shift:sub", "baseline-shift:super", false),
360 TestCase("baseline-shift:baseline", "baseline-shift:sub", false),
361 TestCase("baseline-shift:10px", "baseline-shift:10px", true ),
362 TestCase("baseline-shift:10px", "baseline-shift:12px", false),
366 TestCase("text-decoration-line:underline", "text-decoration-line:underline", true ),
367 TestCase("text-decoration-line:underline", "text-decoration-line:overline", false),
368 TestCase("text-decoration-line:underline overline", "text-decoration-line:underline overline", true ),
369 TestCase("text-decoration-line:none", "", true ), // Default
373 TestCase("text-decoration-style:solid", "text-decoration-style:solid", true ),
374 TestCase("text-decoration-style:dotted", "text-decoration-style:solid", false),
375 TestCase("text-decoration-style:solid", "", true ), // Default
378 TestCase("text-decoration:underline", "text-decoration:underline", true ),
379 TestCase("text-decoration:underline", "text-decoration:overline", false),
380 TestCase("text-decoration:underline overline","text-decoration:underline overline",true ),
381 TestCase("text-decoration:overline underline","text-decoration:underline overline",true ),
382 // TestCase("text-decoration:none", "text-decoration-color:currentColor", true ), // Default
386 TestCase(0,0,0)
409 struct TestCase {
410 TestCase(gchar const* parent, gchar const* child, gchar const* result) :
417 TestCase cases[] = {
420 TestCase("stroke-miterlimit:6", "stroke-miterlimit:2", "stroke-miterlimit:2" ),
421 TestCase("stroke-miterlimit:6", "", "stroke-miterlimit:6" ),
422 TestCase("", "stroke-miterlimit:2", "stroke-miterlimit:2" ),
425 TestCase("opacity:0.3", "opacity:0.3", "opacity:0.3" ),
426 TestCase("opacity:0.3", "opacity:0.6", "opacity:0.6" ),
428 TestCase("opacity:0.3", "", "opacity:1.0" ),
429 TestCase("", "opacity:0.3", "opacity:0.3" ),
430 TestCase("opacity:0.5", "opacity:inherit", "opacity:0.5" ),
431 TestCase("", "", "opacity:1.0" ),
434 TestCase("text-indent:3", "text-indent:3", "text-indent:3" ),
435 TestCase("text-indent:6", "text-indent:3", "text-indent:3" ),
436 TestCase("text-indent:6px", "text-indent:3", "text-indent:3" ),
437 TestCase("text-indent:1px", "text-indent:12pc", "text-indent:12pc" ),
439 //TestCase("text-indent:2ex", "text-indent:2ex", "text-indent:2ex" ),
440 TestCase("text-indent:3", "", "text-indent:3" ),
441 TestCase("text-indent:3", "text-indent:inherit", "text-indent:3" ),
444 TestCase("letter-spacing:normal", "letter-spacing:normal", "letter-spacing:normal" ),
445 TestCase("letter-spacing:2", "letter-spacing:normal", "letter-spacing:normal" ),
446 TestCase("letter-spacing:normal", "letter-spacing:2", "letter-spacing:2" ),
447 TestCase("letter-spacing:5px", "letter-spacing:5px", "letter-spacing:5px" ),
448 TestCase("letter-spacing:10px", "letter-spacing:5px", "letter-spacing:5px" ),
450 // TestCase("letter-spacing:10em", "letter-spacing:10em", "letter-spacing:10em" ),
453 TestCase("text-anchor:start", "text-anchor:start", "text-anchor:start" ),
454 TestCase("text-anchor:start", "text-anchor:middle", "text-anchor:middle" ),
455 TestCase("text-anchor:start", "", "text-anchor:start" ),
456 TestCase("text-anchor:start", "text-anchor:junk", "text-anchor:start" ),
457 TestCase("text-anchor:end", "text-anchor:inherit", "text-anchor:end" ),
459 TestCase("font-weight:400", "font-weight:400", "font-weight:400" ),
460 TestCase("font-weight:400", "font-weight:700", "font-weight:700" ),
461 TestCase("font-weight:400", "font-weight:bolder", "font-weight:700" ),
462 TestCase("font-weight:700", "font-weight:bolder", "font-weight:900" ),
463 TestCase("font-weight:400", "font-weight:lighter", "font-weight:100" ),
464 TestCase("font-weight:200", "font-weight:lighter", "font-weight:100" ),
466 TestCase("font-stretch:condensed","font-stretch:expanded", "font-stretch:expanded" ),
467 TestCase("font-stretch:condensed","font-stretch:wider", "font-stretch:semi-condensed" ),
485 TestCase("text-decoration-line:overline", "text-decoration-line:underline",
493 TestCase(0,0,0)