Benjamin Otte
c628ec30e1
tests: Add parsing tests for sibling selectors
2012-03-02 02:17:10 +01:00
Benjamin Otte
1b770caf0a
tests: Add a test for using the same selector multiple times
2012-03-02 02:17:09 +01:00
Benjamin Otte
35a0fb09ac
css: Rewrite selectors
...
Previously we kept a Selector object for every "simple selector" (term
from CSS spec). Now we keep one for every match operation. So given the
selector
".a b:focus"
we will have 4 elements:
- pseudoclass ":focus"
- element "b"
- match any desendant (the space)
- class ".a"
Each of those is represented by a "selector class" which is basically
the collection of vfuncs for this selector.
2012-03-02 02:17:09 +01:00
Benjamin Otte
eb013767bb
selector: Remove a misleading error message
...
Duplicate selectors are indeed fine and shouldn't cause errors.
You want to use them to up specificity.
2012-03-02 02:17:09 +01:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Matthias Clasen
ac9a94b7af
Fix declarations-valid-15 css parser test
2012-02-06 14:44:21 -05:00
Matthias Clasen
b5d5e6427a
Fix declarations-valid-14 css parser test
2012-02-06 14:06:20 -05:00
Benjamin Otte
2fdadb053c
tests: Add 'px' to css tests
2012-02-02 03:14:02 +01:00
Benjamin Otte
82b739c490
tests: Add parsing test for background-size
2012-02-02 03:14:01 +01:00
Benjamin Otte
2e901752b1
tests: Add parsing tests for linear gradients
2012-02-02 03:14:01 +01:00
Benjamin Otte
f22c986102
tests: Update CSS tests for borders
...
Borders now expect 'px'.
2012-02-02 03:14:00 +01:00
Benjamin Otte
f04c12bd2c
tests: Add a deprecation warning
...
This should probably have been added a while ago...
2012-01-16 18:34:41 +01:00
Cosimo Cecchi
d994ace41e
tests: add a CSS test for currentColor in border-color
2012-01-11 17:37:21 -05:00
Rico Tzschichholz
71f6b2d40a
tests: Fix typo in Makefile.am
2012-01-10 17:00:57 +01:00
Benjamin Otte
3d6a76a866
tests: Add a test for all the border shorthands
...
Too much fun with random test generation, so I did a big one.
2012-01-09 18:37:59 +01:00
Benjamin Otte
f021291423
tests: Fix for changes in this branch
...
The expected results are now more correct, but still not perfect.
2012-01-09 18:37:59 +01:00
Paolo Borelli
e69f14cf2b
Add border-{top|left|bottom|right}-style properties
...
Add all the border-style subproperties and turn border-style itself in a
shorthand.
2012-01-09 18:37:58 +01:00
Benjamin Otte
af8c7ebecd
tests: Add test for background-repeat
2012-01-09 18:37:58 +01:00
Benjamin Otte
77af93bad9
reftests: Add a test for 'background'
...
It just tests all the permutations to make sure my idea for implementing
random ordering actually works.
It does (at least currently).
2012-01-09 18:37:58 +01:00
Benjamin Otte
232d9226f9
tests: Add test for 'initial' and 'inherit' on shorthands
2012-01-09 18:37:55 +01:00
Benjamin Otte
f6422513b1
shorthand: Update border-image parsing
...
Also update tests. None is not a valid value...
2012-01-09 18:37:54 +01:00
Benjamin Otte
06960bb9d6
tests: Add a test for 'none'
2012-01-09 18:37:51 +01:00
Benjamin Otte
6fdf6ba68f
css: Remove generic 'none' handling
...
Includes updated tests.
Who could have thought that our tests were broken. Ooops.
2012-01-09 18:37:51 +01:00
Benjamin Otte
e9dfb8d5b8
tests: Add tests for 'inherit' and 'initial'
2012-01-09 18:37:51 +01:00
Matthias Clasen
9a13943d8c
Add a css parser test for transparent
2011-10-25 07:38:36 -04:00
Matthias Clasen
85a6bc8be1
Distribute tests/css/parser/selector.errors
...
https://bugzilla.gnome.org/show_bug.cgi?id=662024
2011-10-20 21:52:25 -04:00
Michael Terry
431227e1af
tests: Add test for non-nullterminated gtk_css_provider_load_data()
...
https://bugzilla.gnome.org/show_bug.cgi?id=657359
2011-08-26 16:26:28 +02:00
Benjamin Otte
26e9d07718
API: cssprovider: Change parsing-error signal
...
Instead of path, line and position, emit the section the error happened
in. This has a lot more information to consume.
2011-08-26 16:26:28 +02:00
Benjamin Otte
62d231aeff
cssparser: Make lines and positions 0-indexed
2011-08-26 16:26:28 +02:00
Rico Tzschichholz
ecd5f73dd7
build: Fix makefile for new location of test image
2011-07-23 12:27:45 +02:00
Benjamin Otte
d56e8c8e54
tests: Move declaration tests to new test infrastructure
...
This way, we can test more feature of them, in particular check for
different errors, which were causing test failures.
2011-07-21 02:43:54 +02:00
Benjamin Otte
75a43bb40c
tests: Move empty css parser test to new CSS tests
2011-07-20 02:36:44 +02:00
Benjamin Otte
15674c5bd4
tests: Move stylecontext CSS tests
...
Use the new CSS infrastructure for part of the old CSS tests. This way
we can probably check for warning messages such as deprecations.
2011-07-20 02:36:44 +02:00
Benjamin Otte
d3535ff6ce
tests: Add tests for font-family
...
This readds the tests now that font-family works again. They were
previously removed when font-family support was backed out due to bugs.
2011-06-15 12:57:21 +02:00
Benjamin Otte
f4a6ef0d50
tests: Add a CSS test for color parsing errors
...
In [particular check for the fix in the last commit.
2011-06-13 15:01:52 +02:00
Matthias Clasen
d9fa5b342b
Forgotten file
2011-06-13 07:33:47 -04:00
Matthias Clasen
2ce9ff2d6a
Remove broken font-family css test
2011-06-13 06:56:12 -04:00
Benjamin Otte
b5544f5514
tests: Add tests for font-family
2011-06-02 02:03:52 +02:00
Benjamin Otte
bda86b5dd3
tests: Add a test for border-radius handling
2011-06-02 02:03:52 +02:00
Benjamin Otte
be71ea611b
tests: Add CSS test for the last two bugs
...
And it's a 1-byte file, too!
2011-06-02 02:03:51 +02:00
Benjamin Otte
a21042c156
tests: Add simple CSS test for widget style properties
2011-05-23 15:56:09 +02:00
Benjamin Otte
bd610582b8
tests: Add parser test for shorthands
2011-05-22 05:56:11 +02:00
Benjamin Otte
d7c9d8ce15
tests: Add forgotten file
...
File was forgotten in 8fd6bd323c
2011-05-21 22:48:52 +02:00
Benjamin Otte
7a0600644c
tests: Add missing CSS test
2011-05-19 03:16:03 +02:00
Benjamin Otte
710caeb512
tests: Add a test for enum values
2011-05-18 22:17:56 +02:00
Benjamin Otte
174cfff50f
tests: Add a test to ensure we handle unknown pseudo-classes correctly
...
1) We want to throw an unknown value
2) We want to skip the whole rule
2011-05-18 22:17:56 +02:00
Benjamin Otte
e7aa125eb0
tests: Add a test for all selector combination
...
The test contains an error where we complain about a duplicate value for
":hover:hover"
2011-05-18 22:17:56 +02:00
Benjamin Otte
ce44c95ce8
tests: Be more verbose in error messages.
...
Also, it makes it easier to copy/paste diffs from the message log...
2011-05-18 22:17:55 +02:00
Benjamin Otte
dd78ab5a2f
tests: Add test that ensures we properly parse the color red
2011-05-18 22:17:55 +02:00
Benjamin Otte
42fb004dfc
tests: Add another parsing test from the css spec
2011-05-18 22:17:55 +02:00