Cosimo Cecchi
235cde5282
Revert "Remove broken misc-alignment reftest"
...
This reverts commit 6416385e47
.
2012-03-05 18:36:58 -05:00
Cosimo Cecchi
d169f7711c
reftests: fix label-sizing reftest
...
Add it back fixed.
2012-03-05 18:36:52 -05:00
Cosimo Cecchi
39cef018ab
Revert "Remove broken label-sizing reftest"
...
This reverts commit 168300cb63
.
2012-03-05 18:36:47 -05:00
Cosimo Cecchi
0689810647
reftests: fix quit-mnemonic reftest
...
And add it back
2012-03-05 18:36:26 -05:00
Cosimo Cecchi
3681b99383
Revert "Remove broken quit-mnemonic reftest"
...
This reverts commit 563eff4dfb
.
2012-03-05 18:36:13 -05:00
Matthias Clasen
43b2dba7a8
Grr, complete the test removals
2012-03-05 17:12:16 -05:00
Matthias Clasen
7b962c8521
Remove broken css-match-regions reftest
2012-03-05 15:51:24 -05:00
Matthias Clasen
563eff4dfb
Remove broken quit-mnemonic reftest
2012-03-05 15:37:49 -05:00
Matthias Clasen
6416385e47
Remove broken misc-alignment reftest
2012-03-05 15:36:50 -05:00
Matthias Clasen
168300cb63
Remove broken label-sizing reftest
2012-03-05 15:35:35 -05:00
Matthias Clasen
14d7072224
Remove broken css-match-region-matches-star reftest
2012-03-05 15:34:46 -05:00
Benjamin Otte
c922967155
reftests: Add a rendering test for sibling matching
2012-03-02 02:17:10 +01:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Paolo Borelli
4a6658b0fa
Set infobar css classes permanently
...
The message-type css classes must be in the widget context all the time,
not only when drawing, otherwise they are not propagated to the
children, for instance a label in the InfoBar must inherit the
color. Add a corresponding reftest.
https://bugzilla.gnome.org/show_bug.cgi?id=670555
2012-02-24 08:16:55 +01:00
Cosimo Cecchi
8317fed2b9
Revert "Remove the broken test for now"
...
Passes correctly again now.
This reverts commit addff95c97
.
2012-02-21 12:25:06 +01:00
Cosimo Cecchi
c35f1d3f9a
Revert "Disable broken entry progress test"
...
Passes correctly again now.
This reverts commit 39e51072b4
.
2012-02-21 12:14:50 +01:00
Matthias Clasen
addff95c97
Remove the broken test for now
...
It can come back after it has been repaired.
2012-02-21 10:00:26 +01:00
Matthias Clasen
39e51072b4
Disable broken entry progress test
...
Cosimo says this needs to be done differently.
2012-02-21 01:50:19 +01:00
Benjamin Otte
5e3c2524f8
reftests: Add a test for misrendering of transparent windows
...
If a widget with a GDK window is set to be transparent in the CSS, it
gets drawn as black instead. This test checks that the fix works.
2012-02-10 11:46:19 +01:00
Matthias Clasen
9e14789b63
Work around a drawing problem with small notebooks
2012-02-06 15:50:40 -05:00
Matthias Clasen
137bab8710
More resetting
2012-02-06 15:43:47 -05:00
Benjamin Otte
40a89fccb5
reftests: Fix background-origin reftest for all themes
...
We want to @import reset-to-defaults.css here.
2012-02-06 20:43:05 +01:00
Benjamin Otte
f855238cc7
reftests: Improve 'unresolvable' test
...
Include reset-to-defaults here, too
2012-02-02 03:14:02 +01:00
Benjamin Otte
8cdbebae71
reftests: Fix css-match-exact
...
Ensure that background-colors are always set. And import
reset-to-defaults so that there's no background image or so.
2012-02-02 03:14:02 +01:00
Benjamin Otte
1484208b4c
reftests: Fix entry-progress-coloring test
...
Use reset-to-defaults here.
2012-02-02 03:14:02 +01:00
Benjamin Otte
bc1a689e55
reftests: Add another background-size test
...
This one tests the keywords for the background-size property
2012-02-02 03:14:02 +01:00
Benjamin Otte
e84af235ee
css: Implement padding as numbers
...
Also remove the now unused border parsing function for shorthands.
2012-02-02 03:14:02 +01:00
Benjamin Otte
f2352a5f35
reftests: Fix border-image-url reftest
...
"border-style: none;" sets border widths to 0. So no border was drawn.
Use "border-style: groove" instead. (If the border was drawn that way,
it'd look noticably different.)
Also include reset-to-defaults.css so we really get default CSS.
2012-02-02 03:14:02 +01:00
Benjamin Otte
f1c73fcc0c
reftests: Add 'px' to all properties
2012-02-02 03:14:02 +01:00
Benjamin Otte
cc83986eb8
reftests: Make test runner always use image surfaces
...
See comment in code for why.
2012-02-02 03:14:01 +01:00
Benjamin Otte
cfebd1ec06
reftests: Add reftest for background-size
2012-02-02 03:14:01 +01:00
Benjamin Otte
1eeafcf569
reftests: Put border-image-repeat test back
...
This reverts commit 001d42f369
.
Because now that we have background-size support, we can use it to make
stuff work!
2012-02-02 03:14:01 +01:00
Benjamin Otte
ceed732d65
reftests: set style properties to 0 in reset-to-defaults
...
GtkButton doesn't conform to CSS with these properties.
Bad GtkButton!
2012-02-02 03:14:01 +01:00
Benjamin Otte
d56ac0d4df
reftests: Add a bunch of linear gradient tests
2012-02-02 03:14:01 +01:00
Cosimo Cecchi
95f5ca062b
reftests: set border-image: none in border-image-url's reference CSS
...
Fix border-image-url reftest
2012-02-01 17:59:28 -05:00
Cosimo Cecchi
d61a84bb3a
reftests: add a bunch of missing reset-to-defaults
...
Fix the css-match-* reftests.
2012-02-01 17:59:27 -05:00
Matthias Clasen
585a6652d5
Use G_SOURCE_CONTINUE/REMOVE
...
Now that GLib provides these macros, we should use them
to make the code more readable.
2012-01-30 19:12:27 -05:00
Matthias Clasen
001d42f369
Remove broken border-image-repeat test
...
It will come back when it works
2012-01-16 19:14:20 -05:00
Cosimo Cecchi
984834ea57
reftests: fix background-area reftest
...
background-clip: content-box broke when I made GtkButton allocate its
border-width, as for the CSS box model.
2012-01-11 16:13:09 -05:00
Benjamin Otte
945b9ff9e2
reftests: Add reftest for empty area fix
2012-01-11 15:48:54 +01:00
Paolo Borelli
04ea69ab38
Add reftets for border-style property
2012-01-09 18:37:59 +01:00
Benjamin Otte
cc2446d29b
reftests: Add a CSS file to reset properties to default values
...
We can use this to be independant of themes. See the comment at the top
of the file
2012-01-09 18:37:59 +01:00
Benjamin Otte
cc3e4c4eec
reftests: Ensure no explicit colors are set on labels
2012-01-09 18:37:57 +01:00
Benjamin Otte
d10f851201
reftests: Fix a bunch of invalid CSS cases
...
use 'transparent' instead of 'none' for colors.
2012-01-09 18:37:57 +01:00
Benjamin Otte
78024504aa
reftests: Add a test comparing inherit and initial
...
One test has all properties set to 'inherit', the other to 'initial'.
This should result in the same result, as inherit will ensure every
widget inherits the same value, and for the toplevel 'inherit' is
defined as being identical to 'initial'.
2012-01-09 18:37:51 +01:00
Benjamin Otte
53bb230e12
reftests: Add a test for a parent in a different state
...
inherit in those cases should inherit from that different state, not
from this state.
2012-01-09 18:37:51 +01:00
Benjamin Otte
821f9b478f
reftests: Add test for pseudo-class matching
...
Previous GTK matched pseudoclasses not based on CSS rules, but based on
their value in the enumeration. This is now fixed.
2012-01-09 18:37:50 +01:00
Benjamin Otte
b73ede690d
reftests: Add a test for latest commit
...
We want to make sure we notice when we mess up label attribute ordering
again...
2012-01-06 05:23:43 +01:00
Benjamin Otte
84c061b861
reftests: Add test for empty grid with spacing
...
This used to crash.
https://bugzilla.gnome.org/show_bug.cgi?id=660139
2011-12-29 10:03:59 +01:00
Benjamin Otte
763e4b9f45
reftests: Fix test for border-image addition
2011-11-29 20:44:57 +01:00
Alexander Larsson
db5e3872f5
Fix up background-origin now that we correctly handle the background color
2011-11-25 16:14:20 +01:00
Alexander Larsson
9fd4e954b5
Reftest background-origin with various background-clip values
2011-11-25 16:14:20 +01:00
Alexander Larsson
d8d7c7c171
Update background-area reftest for background-clip
2011-11-25 16:14:20 +01:00
Alexander Larsson
34e15566e3
Add reftest to test border-style: none
...
From the css docs at http://www.w3.org/TR/CSS2/box.html :
8.5.1 Border width: 'border-top-width', 'border-right-width', 'border-bottom-width',
'border-left-width', and 'border-width'
Computed value: absolute length; '0' if the border style is 'none' or 'hidden'
So, if i specify border-style none and a border-width > 0 that should give the
same result as border-width 0.
2011-11-25 16:14:10 +01:00
Benjamin Otte
f412293a2d
reftests: Make sure border-image-gradient keeps working
...
.. even with more advanced themes.
2011-11-25 15:12:45 +01:00
Benjamin Otte
9011bf9e3b
reftests: Mark windows as popups
...
Improves performance, gets rid of resize grip.
2011-11-24 18:29:45 +01:00
Marc-André Lureau
c1e8e7ba22
reftests: Add a reftest for background-repeat css property
...
https://bugzilla.gnome.org/show_bug.cgi?id=663522
2011-11-08 12:41:35 -05:00
Matthias Clasen
7d165b67f9
Fix make check
...
Somebody committed a behaviour change that broke his own
tests...tsk, tsk.
2011-10-25 07:38:36 -04:00
Cosimo Cecchi
b928664471
reftests: add a reftest for the CSS :only-child selector
...
https://bugzilla.gnome.org/show_bug.cgi?id=660833
2011-10-04 11:48:20 -04:00
Benjamin Otte
89d16a5123
reftests: Add a reftest checking background-color: transparent
2011-09-26 22:34:20 +02:00
Benjamin Otte
c21b6f4705
reftests: Disable border-radius tests for shadow
...
We get rendering artifacts that make tests fail. Not good.
The code is only commented out so far, so it should be trivial to
reenable if someone wants to. (Or this commit could just be reverted.)
2011-09-05 18:56:23 +02:00
Benjamin Otte
d717a2dcfc
grid: Swap wrong spacing properties
...
row-spacing behaved like column-spacing should have and vice versa.
Also update tests that erroneously checked this behavior.
Thanks to Joanmarie Diggs for finding this.
2011-09-05 18:56:23 +02:00
Benjamin Otte
651723b4d4
reftests: Add a test for the recent notebook fix
2011-08-27 02:47:52 +02:00
Benjamin Otte
db66618227
reftests: Add test for border radius clamping
2011-07-21 02:43:54 +02:00
Benjamin Otte
20c6acfc8d
reftests: Add test for recent fix
...
https://bugzilla.gnome.org/show_bug.cgi?id=654678
2011-07-19 11:58:22 +02:00
Benjamin Otte
769c795d57
reftests: Use an offscreen window to avoid artifacts
...
When tests are larger than the screen size and no compositing is
enabled, the window will be clipped to the screen size and all areas
outside of the screen have undefined contents.
To avoid this, we can use an offscreen window.
2011-07-05 15:28:18 +02:00
Benjamin Otte
ace4faa4e2
reftests: Fix label-sizing reference for Pango
...
See https://bugzilla.gnome.org/show_bug.cgi?id=649783 for a discussion
of the problem. Should this bug be fixed, this patch can just be
reverted.
2011-07-05 15:18:14 +02:00
Benjamin Otte
84e6f353ac
reftests: load/save file once in Glade
...
This way the output is canonicalized for further editing. No changes
have been done.
2011-07-05 15:17:23 +02:00
Cosimo Cecchi
ba76f54549
reftests: Add test for box brokenness
...
This is a tests for the last commit.
2011-07-02 01:57:27 +02:00
Benjamin Otte
4edb3f08e4
reftests: fix background-area reftest after the last commit
2011-06-15 11:25:26 -04:00
Benjamin Otte
016e0c1a3e
reftests: Check that the default border color is the foreground color
2011-06-13 15:01:52 +02:00
Benjamin Otte
a536a50dbd
reftests: Add reftest for unresolvable properties
2011-06-11 10:41:17 +02:00
Benjamin Otte
a1d19be950
reftests: Add a test for inset box-shadow
...
This test is copied from the CSS spec. The reference is very sensitive
to the rendering algorithm in use, because the rounded corners have
semi-transparent pixels. It might be necessary to update them in the
future.
2011-06-11 09:29:43 +02:00
Benjamin Otte
281ce813fc
reftests: Add background-area reftest
...
Checks the fix from last commit: background area is supposed to be the
border box.
2011-06-11 09:29:32 +02:00
Benjamin Otte
7adfd8a0f5
reftests: Remove unused file from EXTRA_DIST
2011-06-10 16:26:39 +02:00
Benjamin Otte
53e3f43217
reftests: ADd test for overlapping border-image slices
2011-06-09 05:51:55 +02:00
Benjamin Otte
9affa9fc4d
reftests: Add border-image-repeat
...
Tests that border-image-repeat is rendered correctly.
The reftest is done via toolbars stuffed into a GtkFixed using
background-image and images tuned for it.
2011-06-09 05:51:54 +02:00
Cosimo Cecchi
83a383e4ba
reftests: add reftests for border-image with gradient and url sources
...
https://bugzilla.gnome.org/show_bug.cgi?id=651194
2011-06-09 05:51:54 +02:00
Matthias Clasen
d4224cd325
GtkGrid: Fix a size allocation problem
...
We need pay attention the the request mode when doing size allocation.
The code was using request mode for requisition, but orientation
for allocation.
Also add a reftest that exhibits the issue, courtesy of
Benjamin Otte.
2011-06-07 11:05:50 -04:00
Benjamin Otte
bdb8c64dd0
reftests: Add a reftest setting all colors to "none"
2011-06-02 02:03:51 +02:00
Benjamin Otte
43cca78a98
reftests: Test new pseudo-class support in GtkBox
2011-06-02 02:03:50 +02:00
Benjamin Otte
0c7e5a51f3
reftests: sort EXTRA_DIST in Makefile
2011-05-22 05:56:12 +02:00
Benjamin Otte
4d92835997
reftests: Add a reftest to check shorthands do work
...
Checks shorthands are properly unpacked in the CSS and that they indeed
set all relevant properties. Or at least border-width does.
2011-05-22 05:56:12 +02:00
Benjamin Otte
ef51b5be76
reftests: Add label-shadows test
...
Tests shadows work properly for rotated labels
2011-05-22 05:56:12 +02:00
Cosimo Cecchi
d392af2e36
reftests: Check that inherited properties work
2011-05-18 22:17:59 +02:00
Benjamin Otte
25c396409c
reftests: Check style property order
...
Ensure that style properties are read in the correct order, by having a
property twice with vastly different values.
2011-05-18 22:17:58 +02:00
Benjamin Otte
1400644069
reftests: Add a test ensuring selectors don't match children
...
Previously, the selector "Foo" would not only match Foo widgets, but
also all widgets that are descendants of Foo.
2011-05-18 22:17:57 +02:00
Benjamin Otte
f3ed498c5b
reftests: Add a test for descendant CSS selectors match
...
In widget hierarchy like "Foo Bar Bar Baz", we want the selector "Foo >
Bar Baz" to match, because it matches the elements 1, 2 and 4.
Previously, the selector only matches the Bar at position 3 and then
failed because it wasn't preceded by a Foo.
2011-05-18 22:17:56 +02:00
Benjamin Otte
806c804271
reftests: Add a test that checks that * matches regions
2011-05-18 22:17:56 +02:00
Benjamin Otte
dda83e2f98
reftests: Unset background-image in CSS of test
...
Otherwise the test screws up when it's set
2011-05-18 22:17:56 +02:00
Benjamin Otte
b8eac1e130
reftests: Add a check for matching regions only once
2011-05-18 22:17:56 +02:00
Benjamin Otte
8ca799cc39
reftests: Add a test for matching by class
2011-05-18 22:17:56 +02:00
Benjamin Otte
78de3e8180
reftests: Add a test for matching by name
2011-05-18 22:17:56 +02:00
Benjamin Otte
269fe0f347
reftests: Add a test for matching by subtype
2011-05-18 22:17:56 +02:00
Benjamin Otte
90caef4abe
reftests: Add test to check that matching by type works
2011-05-18 22:17:56 +02:00
Benjamin Otte
c2f23ccd23
reftests: Add a shell script to create tests
...
See the documentation in the script.
Tests are not yet added as the output from the 2 included scripts
doesn't match and the intended reference output first needs to be agreed
on.
2011-05-13 02:46:15 +02:00
Benjamin Otte
d20aa1f8dc
reftests: Add a test for the label fix
2011-05-12 23:40:26 +02:00
Matthias Clasen
7b6e3be4a7
Another grid spacing reftest
...
This one checks that empty rows/columns don't affect layout.
2011-05-11 19:52:33 -04:00
Matthias Clasen
87e46bfaa9
Add some reftests comparing aspects of grid and box spacing
2011-05-11 13:48:00 -04:00
Benjamin Otte
d01d90fccd
reftests: Add test for undersized children of GtkPaned
...
Tests the recent fixes done in 206b9f940d
and 6bda6f0c58
2011-05-10 01:39:14 +02:00