1efb72210d
Fix crash in parse_border()
...
The bug was introduced in commit:
9b7640b8 by Benjamin Otte, 2012-03-26 17:24:02
styleproperty: Make _gtk_style_property_parse_value() return a CssValue
In that commit, `values` changed from `GValue*` to `GtkCssValue**`,
but one `!G_IS_VALUE (&values[8])` was left untouched. As a result,
if `border` shorthand contains anything after color, it might crash,
depending on memory layout.
New test included.
Fixes : #751
2019-11-23 18:06:31 +01:00
3c2b5cda74
meson: port installed tests and reftests
...
I couldn't get all reftests to work reliably, so the tests failing
on either CI or on my machine are skipped for now.
Installed tests are disabled by default and can be enabled with "-Dinstalled_tests=true"
2019-11-15 12:52:03 +01:00
d52dad2042
autotools: dist all meson related build files
2019-04-11 16:45:36 +02:00
8caa937739
tests: Include system headers appropriately
...
Don't include unistd.h on Windows, and include the appropriate headers on
Windows as necessary.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
2019-04-11 16:40:33 +02:00
8ec004cc08
Import meson build files from an 3.22
...
Specifically, from 6dd6660c685d22e88af5ed4d0b5f1f22df0338de
2019-04-11 16:40:33 +02:00
c7654c737c
Add a css parser test for background-blend-mode
2016-07-05 13:16:43 -04:00
7855294594
Fix css parser tests
...
These tests were affected by the font and linear-gradient parsing
changes.
2016-04-26 00:03:09 -04:00
3056d793a4
cssparser: Make _gtk_css_parser_has_number() a bit smarter
...
Previously we just checked the first character. And if that was a "-" as
in "-gtk-some-special-value", we assumed it was a number. Which it
clearly wasn't.
Test included
2016-02-23 04:22:19 +01:00
0cda3ba3e8
calc: Allow subterms with '(' ')' bracketing
...
Some more tests included.
2016-02-13 04:49:08 +01:00
63d1f80742
css: Add support for '*' and '/' to calc()
...
More tests are included.
2016-02-13 04:49:08 +01:00
4a9fa1e750
css: Add API to handle order when printing calc()
...
Also, add some tests and update old ones to print calc() statements
correctly.
2016-02-13 04:49:08 +01:00
65dd9da44a
css: Add support for sums to calc()
...
This requires adding code to do math on number values:
gtk_css_number_value_multiply()
and
gtk_css_number_value_try_add()
were added to achieve that.
Some tests are included.
2016-02-13 04:49:08 +01:00
cd6dc954f2
css: Add initial support for calc()
...
So far, calc() only supports literals, ie it's completely useless.
2016-02-13 04:49:08 +01:00
0c12601208
cssimageradial: Only allow at "<position>" after other props
...
Don't allow syntax like
at top left circle
but follow the spec about requiring the at <position> right before the
comma.
This is porbably because
circle at 10px 10px
could be interpreted as
circle 10px at 10px
with the now disallowed syntax, too.
Test included.
2016-02-05 19:31:47 +01:00
982da040b2
cssimageradial: Only emit one error for wrong position
...
Test included.
2016-02-05 19:31:47 +01:00
586522d83c
Use TAP output for installed tests
2016-01-30 11:04:22 -05:00
fcea12f790
Add some tests for radial gradient parsing
...
These are the examples from the CSS spec.
2016-01-04 13:59:24 -05:00
2b27096fc3
Fix outline-radius css parser test
...
The outline-radius properties all got a -gtk prefix.
2015-12-27 17:32:45 -05:00
ab182126df
Fix the pseudo-classes-known css test
...
The test needs to be updated for the renamed :dnd pseudo class.
We also need to add a .errors file for the deprecation errors
that we are now producing.
2015-12-27 17:32:30 -05:00
c4ca671a9e
test-css-parser: Add a way to generate output
...
Use test-css-parser --generate foo.css to see the parser
output on stdout. This makes it more convenient to add new
css files to the testsuite.
2015-12-27 17:26:45 -05:00
d0d8671c02
Forgotten files
2015-12-23 01:57:22 -05:00
ef71eabfc5
Add parser tests for animation properties
...
This adds tests for animation-name, animation-duration,
animation-timing-function, animation-iteration-count,
animation-direction, animation-play-state, animation-delay
and animation-fill-mode.
2015-12-22 22:29:38 -05:00
8f44383253
Add a parser tests for transition properties
...
This adds tests for transition-property, transition-delay
and transition-timing-function.
2015-12-22 22:29:38 -05:00
2b6ab1b8bd
Add parser tests for min-width and min-height
2015-12-22 22:29:38 -05:00
a0487f0516
Add parser tests for border-image properties
...
This adds tests for border-image-source, border-image-repeat,
border-image-slice and border-image-width.
2015-12-22 22:29:38 -05:00
5c704621ac
Fix import css parser tests
...
Don't use nonexisting properties here either
2015-12-21 16:33:50 -05:00
31f319d1c7
css parser test: Drop remaining made-up properties
...
These are not used anymore in any tests, and the css parser
doesn't support parsing custom properties anymore.
2015-12-21 14:53:09 -05:00
ece3d33858
Fix css parser integer test
...
Use margin-top instead of a made-up property.
2015-12-21 14:52:06 -05:00
ce859a7c65
Update css parser value none test
...
The test is affected by icon-shadow being renamed and by
engine being deprecated.
2015-12-21 14:44:00 -05:00
0fb84c5a68
Fix the css parser value initial test
...
This was affected by the recent renaming of icon-shadow to
-gtk-icon-shadow. Also, it produces an error now because
engine is deprecated.
2015-12-21 14:37:09 -05:00
474f5b7784
Fix the css parser value inherit test
...
This was affected by the recent renaming of icon-shadow to
-gtk-icon-shadow. Also, it produces an error now because
engine is deprecated.
2015-12-21 14:35:11 -05:00
db094092ae
Update font-weight css parser test
...
This is affected by the recent fix for parsing font-weight.
2015-12-21 14:32:01 -05:00
ea651dcd31
Update font-family css parser test
...
There are no errors here.
2015-12-21 14:31:10 -05:00
b931821f5e
Update the css parser unknown pseudo-class test
...
Use an existing property instead of a made-up one.
2015-12-21 14:29:17 -05:00
8ff127940f
Update the css parser selector test
...
Use an existing property instead of the made-up one, here.
2015-12-21 14:27:52 -05:00
1f298c385f
Drop the css parser enum test
...
We are no longer using and non-css properties, and css enums
are all parsed with custom code.
2015-12-21 14:25:46 -05:00
e567f23bcd
Update another css parser test
...
This test was using the engine property, which has
been deprecated and thus generates an error now.
Instead, use the font property.
2015-12-21 14:18:51 -05:00
dcc3dd1211
Update css parser test for declarations
...
Use existing CSS properties instead of made-up ones.
2015-12-21 14:14:36 -05:00
0035d526c3
test-css-parser: Drop unused property
...
The rgba-property is no longer used in any tests, drop it.
2015-12-21 14:11:10 -05:00
6eb4102bf2
Update css parser tests for colors
...
Use the color property instead of a made-up rgba-valued property.
2015-12-21 14:10:20 -05:00
a21025e096
test-css-parser: Drop unused property
...
The border-property is no longer used in any tests, drop it.
2015-12-21 14:07:08 -05:00
b56980eba2
Update css parser test for borders
...
Use the border-image-width property instead of a made-up
border-valued property.
2015-12-21 14:06:07 -05:00
0c9c6b882e
Update border-radius-shorthand tests
...
The name of the css file is in the error output, so we
have to update that after the file was recently renamed.
2015-12-21 14:01:03 -05:00
01f2d4dd0f
Update pseudo-class test
...
We have some more pseudo-classes now, and some are printed
out with their CSS name.
2015-12-21 13:59:24 -05:00
6d86ce516d
test-css-parser: Drop unused properties
...
We don't have any tests involving these style
properties, so don't install those.
2015-12-21 13:57:26 -05:00
a5ccef7470
Don't test parsing boolean values in css
...
CSS doesn't have any boolean properties.
2015-12-21 13:51:23 -05:00
698fe18521
Add missing tests to Makefile.am
2015-12-21 06:58:29 -05:00
3daeb70182
Fix the build
2015-12-21 06:45:32 -05:00
d081b309d5
Add some css parser tests
...
These tests exercise many allowed ways to specify various
properties.
2015-12-21 06:28:25 -05:00
cbde3ee01f
css: Add a :dnd pseudoclass
...
This will be used for drag highlighting.
2015-12-02 23:23:36 -05:00