| 1 |
testexecdir = join_paths(installed_test_bindir, 'css', 'parser') |
| 2 |
testdatadir = join_paths(installed_test_datadir, 'css', 'parser') |
| 3 |
|
| 4 |
test_parser = executable('test-css-parser', 'test-css-parser.c', |
| 5 |
install: get_option('installed_tests'), |
| 6 |
install_dir: testexecdir, |
| 7 |
dependencies: libgtk_dep) |
| 8 |
test('css/parser/css-parser', test_parser) |
| 9 |
|
| 10 |
test_data = [ |
| 11 |
'animation-crash-3.12.css', |
| 12 |
'animation-crash-3.12.errors', |
| 13 |
'animation-crash-3.12.ref.css', |
| 14 |
'animation-delay.css', |
| 15 |
'animation-delay.ref.css', |
| 16 |
'animation-direction.css', |
| 17 |
'animation-direction.ref.css', |
| 18 |
'animation-duration.css', |
| 19 |
'animation-duration.ref.css', |
| 20 |
'animation-fill-mode.css', |
| 21 |
'animation-fill-mode.ref.css', |
| 22 |
'animation-iteration-count.css', |
| 23 |
'animation-iteration-count.ref.css', |
| 24 |
'animation-name.css', |
| 25 |
'animation-name.ref.css', |
| 26 |
'animation-play-state.css', |
| 27 |
'animation-play-state.ref.css', |
| 28 |
'animation-shorthand-crash.css', |
| 29 |
'animation-shorthand-crash.ref.css', |
| 30 |
'animation-timing-function.css', |
| 31 |
'animation-timing-function.ref.css', |
| 32 |
'at-invalid-01.css', |
| 33 |
'at-invalid-01.errors', |
| 34 |
'at-invalid-01.ref.css', |
| 35 |
'at-invalid-02.css', |
| 36 |
'at-invalid-02.errors', |
| 37 |
'at-invalid-02.ref.css', |
| 38 |
'at-invalid-03.css', |
| 39 |
'at-invalid-03.errors', |
| 40 |
'at-invalid-03.ref.css', |
| 41 |
'at-invalid-04.css', |
| 42 |
'at-invalid-04.errors', |
| 43 |
'at-invalid-04.ref.css', |
| 44 |
'at-invalid-05.css', |
| 45 |
'at-invalid-05.errors', |
| 46 |
'at-invalid-05.ref.css', |
| 47 |
'at-invalid-06.css', |
| 48 |
'at-invalid-06.errors', |
| 49 |
'at-invalid-06.ref.css', |
| 50 |
'at-invalid-07.css', |
| 51 |
'at-invalid-07.errors', |
| 52 |
'at-invalid-07.ref.css', |
| 53 |
'at-invalid-08.css', |
| 54 |
'at-invalid-08.errors', |
| 55 |
'at-invalid-08.ref.css', |
| 56 |
'at-invalid-09.css', |
| 57 |
'at-invalid-09.errors', |
| 58 |
'at-invalid-09.ref.css', |
| 59 |
'at-invalid-10.css', |
| 60 |
'at-invalid-10.errors', |
| 61 |
'at-invalid-10.ref.css', |
| 62 |
'at-invalid-11.css', |
| 63 |
'at-invalid-11.errors', |
| 64 |
'at-invalid-11.ref.css', |
| 65 |
'at-invalid-12.css', |
| 66 |
'at-invalid-12.errors', |
| 67 |
'at-invalid-12.ref.css', |
| 68 |
'at-invalid-13.css', |
| 69 |
'at-invalid-13.errors', |
| 70 |
'at-invalid-13.ref.css', |
| 71 |
'at-invalid-14.css', |
| 72 |
'at-invalid-14.errors', |
| 73 |
'at-invalid-14.ref.css', |
| 74 |
'at-invalid-15.css', |
| 75 |
'at-invalid-15.errors', |
| 76 |
'at-invalid-15.ref.css', |
| 77 |
'at-invalid-16.css', |
| 78 |
'at-invalid-16.errors', |
| 79 |
'at-invalid-16.ref.css', |
| 80 |
'at-invalid-17.css', |
| 81 |
'at-invalid-17.errors', |
| 82 |
'at-invalid-17.ref.css', |
| 83 |
'at-invalid-18.css', |
| 84 |
'at-invalid-18.errors', |
| 85 |
'at-invalid-18.ref.css', |
| 86 |
'at-invalid-19.css', |
| 87 |
'at-invalid-19.errors', |
| 88 |
'at-invalid-19.ref.css', |
| 89 |
'at-invalid-20.css', |
| 90 |
'at-invalid-20.errors', |
| 91 |
'at-invalid-20.ref.css', |
| 92 |
'at-invalid-21.css', |
| 93 |
'at-invalid-21.errors', |
| 94 |
'at-invalid-21.ref.css', |
| 95 |
'at-invalid-22.css', |
| 96 |
'at-invalid-22.errors', |
| 97 |
'at-invalid-22.ref.css', |
| 98 |
'at-invalid-23.css', |
| 99 |
'at-invalid-23.errors', |
| 100 |
'at-invalid-23.ref.css', |
| 101 |
'at-invalid-24.css', |
| 102 |
'at-invalid-24.errors', |
| 103 |
'at-invalid-24.ref.css', |
| 104 |
'at-invalid-25.css', |
| 105 |
'at-invalid-25.errors', |
| 106 |
'at-invalid-25.ref.css', |
| 107 |
'at-invalid-26.css', |
| 108 |
'at-invalid-26.errors', |
| 109 |
'at-invalid-26.ref.css', |
| 110 |
'at-invalid-27.css', |
| 111 |
'at-invalid-27.errors', |
| 112 |
'at-invalid-27.ref.css', |
| 113 |
'at-valid-01.css', |
| 114 |
'at-valid-01.ref.css', |
| 115 |
'at-valid-02.css', |
| 116 |
'at-valid-02.ref.css', |
| 117 |
'at-valid-03.css', |
| 118 |
'at-valid-03.ref.css', |
| 119 |
'at-valid-04.css', |
| 120 |
'at-valid-04.ref.css', |
| 121 |
'at-valid-05.css', |
| 122 |
'at-valid-05.ref.css', |
| 123 |
'at-valid-06.css', |
| 124 |
'at-valid-06.ref.css', |
| 125 |
'at-valid-07.css', |
| 126 |
'at-valid-08.css', |
| 127 |
'at-valid-08.ref.css', |
| 128 |
'at-valid-09.css', |
| 129 |
'at-valid-09.ref.css', |
| 130 |
'at-valid-10.css', |
| 131 |
'at-valid-10.ref.css', |
| 132 |
'at-valid-11.css', |
| 133 |
'at-valid-11.ref.css', |
| 134 |
'at-valid-12.css', |
| 135 |
'at-valid-12.ref.css', |
| 136 |
'at-valid-13.css', |
| 137 |
'at-valid-13.ref.css', |
| 138 |
'at-valid-14.css', |
| 139 |
'at-valid-14.ref.css', |
| 140 |
'at-valid-15.css', |
| 141 |
'at-valid-15.ref.css', |
| 142 |
'at-valid-16.css', |
| 143 |
'at-valid-16.ref.css', |
| 144 |
'at-valid-17.css', |
| 145 |
'at-valid-18.css', |
| 146 |
'at-valid-18.ref.css', |
| 147 |
'at-valid-19.css', |
| 148 |
'at-valid-19.errors', |
| 149 |
'at-valid-19.ref.css', |
| 150 |
'at-valid-20.css', |
| 151 |
'at-valid-20.errors', |
| 152 |
'at-valid-20.ref.css', |
| 153 |
'at-valid-21.css', |
| 154 |
'at-valid-21.errors', |
| 155 |
'at-valid-21.ref.css', |
| 156 |
'background-blend-mode.css', |
| 157 |
'background-blend-mode.ref.css', |
| 158 |
'background-clip.css', |
| 159 |
'background-clip.ref.css', |
| 160 |
'background-image.css', |
| 161 |
'background-image.ref.css', |
| 162 |
'background-origin.css', |
| 163 |
'background-origin.ref.css', |
| 164 |
'background-position-errors.css', |
| 165 |
'background-position-errors.errors', |
| 166 |
'background-position-errors.ref.css', |
| 167 |
'background-position.css', |
| 168 |
'background-position.errors', |
| 169 |
'background-position.ref.css', |
| 170 |
'background-repeat.css', |
| 171 |
'background-repeat.ref.css', |
| 172 |
'background-shorthand-single.css', |
| 173 |
'background-shorthand-single.ref.css', |
| 174 |
'background-shorthand.css', |
| 175 |
'background-shorthand.ref.css', |
| 176 |
'background-size.css', |
| 177 |
'background-size.ref.css', |
| 178 |
'background-win32-color-is-no-error.css', |
| 179 |
'background-win32-color-is-no-error.ref.css', |
| 180 |
'border-color-currentcolor.css', |
| 181 |
'border-color-currentcolor.ref.css', |
| 182 |
'border-color.css', |
| 183 |
'border-color.ref.css', |
| 184 |
'border-crash-3.24.css', |
| 185 |
'border-crash-3.24.errors', |
| 186 |
'border-crash-3.24.ref.css', |
| 187 |
'border-image-repeat.css', |
| 188 |
'border-image-repeat.ref.css', |
| 189 |
'border-image-slice.css', |
| 190 |
'border-image-slice.ref.css', |
| 191 |
'border-image-source.css', |
| 192 |
'border-image-source.ref.css', |
| 193 |
'border-image-width.css', |
| 194 |
'border-image-width.ref.css', |
| 195 |
'border-infloop-3.12.css', |
| 196 |
'border-infloop-3.12.errors', |
| 197 |
'border-infloop-3.12.ref.css', |
| 198 |
'border-radius-shorthand.css', |
| 199 |
'border-radius-shorthand.errors', |
| 200 |
'border-radius-shorthand.ref.css', |
| 201 |
'border-radius.css', |
| 202 |
'border-radius.ref.css', |
| 203 |
'border-shorthand.css', |
| 204 |
'border-shorthand.ref.css', |
| 205 |
'border-style.css', |
| 206 |
'border-style.ref.css', |
| 207 |
'border-width.css', |
| 208 |
'border-width.ref.css', |
| 209 |
'border.css', |
| 210 |
'border.errors', |
| 211 |
'border.ref.css', |
| 212 |
'box-shadow.css', |
| 213 |
'box-shadow.ref.css', |
| 214 |
'calc-errors.css', |
| 215 |
'calc-errors.errors', |
| 216 |
'calc-errors.ref.css', |
| 217 |
'calc-simple.css', |
| 218 |
'calc-simple.ref.css', |
| 219 |
'calc.css', |
| 220 |
'calc.ref.css', |
| 221 |
'close-at-end-of-file.css', |
| 222 |
'close-at-end-of-file.errors', |
| 223 |
'close-at-end-of-file.ref.css', |
| 224 |
'color.css', |
| 225 |
'color.ref.css', |
| 226 |
'colors-errors.css', |
| 227 |
'colors-errors.errors', |
| 228 |
'colors-errors.ref.css', |
| 229 |
'colors-red.css', |
| 230 |
'colors-red.ref.css', |
| 231 |
'comment-detection.css', |
| 232 |
'comment-detection.ref.css', |
| 233 |
'cross-fade-basic.css', |
| 234 |
'css-21-malformed-declarations.css', |
| 235 |
'css-21-malformed-declarations.errors', |
| 236 |
'css-21-malformed-declarations.ref.css', |
| 237 |
'css-21-malformed-statements.css', |
| 238 |
'css-21-malformed-statements.errors', |
| 239 |
'css-21-malformed-statements.ref.css', |
| 240 |
'currentcolor-everywhere.css', |
| 241 |
'declarations-invalid-01.css', |
| 242 |
'declarations-invalid-01.errors', |
| 243 |
'declarations-invalid-01.ref.css', |
| 244 |
'declarations-invalid-02.css', |
| 245 |
'declarations-invalid-02.errors', |
| 246 |
'declarations-invalid-02.ref.css', |
| 247 |
'declarations-invalid-03.css', |
| 248 |
'declarations-invalid-03.errors', |
| 249 |
'declarations-invalid-03.ref.css', |
| 250 |
'declarations-invalid-04.css', |
| 251 |
'declarations-invalid-04.errors', |
| 252 |
'declarations-invalid-04.ref.css', |
| 253 |
'declarations-invalid-05.css', |
| 254 |
'declarations-invalid-05.errors', |
| 255 |
'declarations-invalid-05.ref.css', |
| 256 |
'declarations-invalid-06.css', |
| 257 |
'declarations-invalid-06.errors', |
| 258 |
'declarations-invalid-06.ref.css', |
| 259 |
'declarations-invalid-07.css', |
| 260 |
'declarations-invalid-07.errors', |
| 261 |
'declarations-invalid-07.ref.css', |
| 262 |
'declarations-invalid-08.css', |
| 263 |
'declarations-invalid-08.errors', |
| 264 |
'declarations-invalid-08.ref.css', |
| 265 |
'declarations-valid-01.css', |
| 266 |
'declarations-valid-01.ref.css', |
| 267 |
'declarations-valid-02.css', |
| 268 |
'declarations-valid-02.ref.css', |
| 269 |
'declarations-valid-03.css', |
| 270 |
'declarations-valid-03.ref.css', |
| 271 |
'declarations-valid-04.css', |
| 272 |
'declarations-valid-04.ref.css', |
| 273 |
'declarations-valid-05.css', |
| 274 |
'declarations-valid-05.ref.css', |
| 275 |
'declarations-valid-06.css', |
| 276 |
'declarations-valid-06.ref.css', |
| 277 |
'declarations-valid-07.css', |
| 278 |
'declarations-valid-07.ref.css', |
| 279 |
'declarations-valid-08.css', |
| 280 |
'declarations-valid-08.ref.css', |
| 281 |
'declarations-valid-09.css', |
| 282 |
'declarations-valid-09.ref.css', |
| 283 |
'declarations-valid-10.css', |
| 284 |
'declarations-valid-10.ref.css', |
| 285 |
'declarations-valid-11.css', |
| 286 |
'declarations-valid-11.ref.css', |
| 287 |
'declarations-valid-12.css', |
| 288 |
'declarations-valid-12.ref.css', |
| 289 |
'declarations-valid-13.css', |
| 290 |
'declarations-valid-13.ref.css', |
| 291 |
'declarations-valid-14.css', |
| 292 |
'declarations-valid-14.ref.css', |
| 293 |
'declarations-valid-15.css', |
| 294 |
'declarations-valid-15.ref.css', |
| 295 |
'declarations-valid-16.css', |
| 296 |
'declarations-valid-16.ref.css', |
| 297 |
'declarations-valid-17.css', |
| 298 |
'declarations-valid-17.ref.css', |
| 299 |
'declarations-valid-18.css', |
| 300 |
'declarations-valid-18.ref.css', |
| 301 |
'declarations-valid-19.css', |
| 302 |
'declarations-valid-19.ref.css', |
| 303 |
'declarations-valid-20.css', |
| 304 |
'declarations-valid-20.ref.css', |
| 305 |
'declarations-valid-21.css', |
| 306 |
'declarations-valid-21.ref.css', |
| 307 |
'declarations-valid-22.css', |
| 308 |
'declarations-valid-22.ref.css', |
| 309 |
'declarations-valid-23.css', |
| 310 |
'declarations-valid-23.ref.css', |
| 311 |
'declarations-valid-24.css', |
| 312 |
'declarations-valid-24.ref.css', |
| 313 |
'declarations-valid-25.css', |
| 314 |
'declarations-valid-25.ref.css', |
| 315 |
'declarations-valid-26.css', |
| 316 |
'declarations-valid-26.ref.css', |
| 317 |
'declarations.css', |
| 318 |
'declarations.errors', |
| 319 |
'declarations.ref.css', |
| 320 |
'deprecated.css', |
| 321 |
'deprecated.errors', |
| 322 |
'deprecated.ref.css', |
| 323 |
'does-not-exist.css', |
| 324 |
'does-not-exist.errors', |
| 325 |
'does-not-exist.ref.css', |
| 326 |
'doubled.css', |
| 327 |
'doubled.ref.css', |
| 328 |
'empty.css', |
| 329 |
'font-family.css', |
| 330 |
'font-family.ref.css', |
| 331 |
'font-size.css', |
| 332 |
'font-size.ref.css', |
| 333 |
'font-stretch.css', |
| 334 |
'font-stretch.ref.css', |
| 335 |
'font-style.css', |
| 336 |
'font-style.ref.css', |
| 337 |
'font-variant.css', |
| 338 |
'font-variant.ref.css', |
| 339 |
'font-weight.css', |
| 340 |
'font-weight.ref.css', |
| 341 |
'freed-string-in-error-messages.css', |
| 342 |
'freed-string-in-error-messages.errors', |
| 343 |
'freed-string-in-error-messages.ref.css', |
| 344 |
'import-cyclic-1.css', |
| 345 |
'import-cyclic-1.errors', |
| 346 |
'import-cyclic-1.ref.css', |
| 347 |
'import-cyclic-2.css', |
| 348 |
'import-cyclic-2.errors', |
| 349 |
'import-cyclic-2.ref.css', |
| 350 |
'import-cyclic-3.css', |
| 351 |
'import-cyclic-3.errors', |
| 352 |
'import-cyclic-3.ref.css', |
| 353 |
'import-nonexistant.css', |
| 354 |
'import-nonexistant.errors', |
| 355 |
'import-nonexistant.ref.css', |
| 356 |
'import-recursive.css', |
| 357 |
'import-recursive.errors', |
| 358 |
'import-recursive.ref.css', |
| 359 |
'integer.css', |
| 360 |
'integer.errors', |
| 361 |
'integer.ref.css', |
| 362 |
'keyframes-empty.css', |
| 363 |
'keyframes-empty.ref.css', |
| 364 |
'keyframes-ordering.css', |
| 365 |
'keyframes-ordering.ref.css', |
| 366 |
'letter-spacing.css', |
| 367 |
'letter-spacing.ref.css', |
| 368 |
'linear-gradient.css', |
| 369 |
'linear-gradient.ref.css', |
| 370 |
'margin.css', |
| 371 |
'margin.ref.css', |
| 372 |
'min-height.css', |
| 373 |
'min-height.ref.css', |
| 374 |
'min-width.css', |
| 375 |
'min-width.ref.css', |
| 376 |
'no-semicolon.css', |
| 377 |
'no-semicolon.ref.css', |
| 378 |
'not.css', |
| 379 |
'not.ref.css', |
| 380 |
'nth-child.css', |
| 381 |
'nth-child.ref.css', |
| 382 |
'opacity.css', |
| 383 |
'opacity.ref.css', |
| 384 |
'outline-color.css', |
| 385 |
'outline-color.ref.css', |
| 386 |
'outline-offset.css', |
| 387 |
'outline-offset.ref.css', |
| 388 |
'outline-radius.css', |
| 389 |
'outline-radius.ref.css', |
| 390 |
'outline-style.css', |
| 391 |
'outline-style.ref.css', |
| 392 |
'outline-width.css', |
| 393 |
'outline-width.ref.css', |
| 394 |
'padding.css', |
| 395 |
'padding.ref.css', |
| 396 |
'property-name-errors.css', |
| 397 |
'property-name-errors.errors', |
| 398 |
'property-name-errors.ref.css', |
| 399 |
'pseudo-classes-known.css', |
| 400 |
'pseudo-classes-known.errors', |
| 401 |
'pseudo-classes-known.ref.css', |
| 402 |
'pseudo-classes-unknown.css', |
| 403 |
'pseudo-classes-unknown.errors', |
| 404 |
'pseudo-classes-unknown.ref.css', |
| 405 |
'radial-background-position-error.css', |
| 406 |
'radial-background-position-error.errors', |
| 407 |
'radial-background-position-error.ref.css', |
| 408 |
'radial-positions.css', |
| 409 |
'radial-positions.errors', |
| 410 |
'radial-positions.ref.css', |
| 411 |
'radial.css', |
| 412 |
'radial.ref.css', |
| 413 |
'selector.css', |
| 414 |
'selector.ref.css', |
| 415 |
'shadow.css', |
| 416 |
'shadow.ref.css', |
| 417 |
'shorthand.css', |
| 418 |
'shorthand.ref.css', |
| 419 |
'simple.css', |
| 420 |
'single-slash.css', |
| 421 |
'single-slash.errors', |
| 422 |
'single-slash.ref.css', |
| 423 |
'string-values.css', |
| 424 |
'string-values.ref.css', |
| 425 |
'test.png', |
| 426 |
'text-decoration-color.css', |
| 427 |
'text-decoration-color.ref.css', |
| 428 |
'text-decoration-line.css', |
| 429 |
'text-decoration-line.ref.css', |
| 430 |
'text-decoration-style.css', |
| 431 |
'text-decoration-style.ref.css', |
| 432 |
'text-shadow-invalid-but-worked-in-3.12.css', |
| 433 |
'text-shadow-invalid-but-worked-in-3.12.errors', |
| 434 |
'text-shadow-invalid-but-worked-in-3.12.ref.css', |
| 435 |
'text-shadow.css', |
| 436 |
'text-shadow.ref.css', |
| 437 |
'transition-delay.css', |
| 438 |
'transition-delay.ref.css', |
| 439 |
'transition-duration.css', |
| 440 |
'transition-duration.ref.css', |
| 441 |
'transition-property.css', |
| 442 |
'transition-property.ref.css', |
| 443 |
'transition-timing-function.css', |
| 444 |
'transition-timing-function.ref.css', |
| 445 |
'transition.css', |
| 446 |
'transition.ref.css', |
| 447 |
'value-inherit-shorthand.css', |
| 448 |
'value-inherit-shorthand.ref.css', |
| 449 |
'value-inherit.css', |
| 450 |
'value-inherit.errors', |
| 451 |
'value-initial-shorthand.css', |
| 452 |
'value-initial-shorthand.ref.css', |
| 453 |
'value-initial.css', |
| 454 |
'value-initial.errors', |
| 455 |
'value-none.css', |
| 456 |
'value-none.errors', |
| 457 |
'value-none.ref.css', |
| 458 |
'widget-style-property.css', |
| 459 |
] |
| 460 |
|
| 461 |
if get_option('installed_tests') |
| 462 |
conf = configuration_data() |
| 463 |
conf.set('libexecdir', gtk_libexecdir) |
| 464 |
configure_file(input: 'test-css-parser.test.in', |
| 465 |
output: 'test-css-parser.test', |
| 466 |
configuration: conf, |
| 467 |
install_dir: testdatadir) |
| 468 |
|
| 469 |
install_data(test_data, install_dir: testexecdir) |
| 470 |
endif |