Benjamin Otte
122cde9528
tests: Add a uint8 test
...
... to ensure the last test works.
2012-04-09 03:09:44 +02:00
Alexander Larsson
2697ac5770
testinput: Fix cursor rendering
...
Make sure custom cursors are rendered at integer coordinates,
otherwise there will be leftover alpha borders when we remove the
cursor.
2012-04-03 11:37:41 +02:00
Matthias Clasen
6124d0cfee
Update expected test output
2012-03-26 09:26:46 -04:00
Matthias Clasen
32c7cdd4b1
testgrid: add a testcase
...
Add a testcase for an empty, homogeneous grid.
https://bugzilla.gnome.org/show_bug.cgi?id=672763
2012-03-24 17:19:58 -04:00
Matthias Clasen
909fe12282
testgtk: Show GtkSettings
2012-03-22 00:17:21 -04:00
Matthias Clasen
678000747b
Update expected test results
2012-03-20 11:34:11 -04:00
Matthias Clasen
8c3d77b4e8
Work around a notebook tab rendering bug
...
This avoids assertions from gtk_render_frame_gap.
2012-03-20 11:19:06 -04:00
Benjamin Otte
01650a9fe2
tests: Add missing file
...
Forgot to git add in 5a20c42c7c
2012-03-19 22:27:18 +01:00
Alexander Larsson
65e371c16e
css: Add reftest for background-position
2012-03-17 05:13:22 +01:00
Benjamin Otte
5a20c42c7c
tests: Add background-position parsing test
...
Man, the syntax is convoluted.
2012-03-17 05:13:22 +01:00
Benjamin Otte
72a308abee
reftests: Add a test for specificity of @import
2012-03-15 02:55:38 +01:00
Javier Jardón
90e938bf15
Use gdk_event_triggers_context_menu() instead of checking for event->button == 3
2012-03-13 13:10:30 +00:00
Javier Jardón
45f660ef75
Use GDK symbolic names for button numbers
2012-03-13 13:10:30 +00:00
Benjamin Otte
e93a3e7d6d
reftests: Fix css-match-regions tests
...
Make it conform to the current behavior - that is, we allow selectors
for regions multiple times in a row.
2012-03-07 04:50:33 +01:00
Benjamin Otte
c6e25c6326
Grr, complete the test removal removals
2012-03-07 03:30:12 +01:00
Benjamin Otte
e4a5df592b
Revert "Remove broken css-match-region-matches-star reftest"
...
This reverts commit 14d7072224
.
2012-03-07 03:21:37 +01:00
Benjamin Otte
47348237c8
Revert "Remove broken css-match-regions reftest"
...
This reverts commit 7b962c8521
.
2012-03-07 03:17:02 +01:00
Benjamin Otte
4d6a6be897
API: colorchooser: Use GtkOrientation for orientation
...
Unfortunately, this swaps the values from the previous state.
But it's definitely a nicer API.
2012-03-07 03:11:05 +01:00
Benjamin Otte
b83dcc26ad
tests: Fix gcc warning
2012-03-07 02:59:30 +01:00
Cosimo Cecchi
d06cce4b32
reftests: fix misc-alignment reftest
...
Add it back.
2012-03-05 18:37:00 -05:00
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
cfd60f47c9
Update expected result for the infobar a11y dump
2012-03-05 15:55:01 -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
Christian Persch
5a8dba7eac
colorchooser: Allow removing the palettes again
...
https://bugzilla.gnome.org/show_bug.cgi?id=671057
2012-03-04 00:29:04 -05:00
Benjamin Otte
c922967155
reftests: Add a rendering test for sibling matching
2012-03-02 02:17:10 +01:00
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
John Ralls
63b0149b84
Bug 655065 Build failure on OS X 10.7 Lion
...
Remove LDDADS and setting each object file's LDDAD to it; just set a global LDDAD.
2012-03-01 16:26:38 -08:00
Carlos Garcia Campos
1a26b9a90a
tests: Add new test for kinetic scrolling
2012-03-01 16:25:22 -05:00
Carlos Garcia Campos
8cde1e38a2
tests: Add checkbox to enable kinetic scrolling in scrolled window test
2012-03-01 16:25:22 -05:00
Benjamin Otte
47402cc26a
testgtk: Fix compiler warnings
2012-03-01 15:10:36 +01:00
Cosimo Cecchi
cb316cb2a8
tests: add a test for GtkOverlay position style classes
...
https://bugzilla.gnome.org/show_bug.cgi?id=669342
2012-02-29 12:33:46 -05: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
7fdc5e723e
Update expected output
2012-02-21 01:50:20 +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
Ryan Lortie
659c7130f0
GtkApplication: remove end session API
...
This seems a bit "too powerful" and unlikely to be used by most
applications. Remove it from now, until someone comes up with a strong
desire for it.
https://bugzilla.gnome.org/show_bug.cgi?id=670485
2012-02-21 01:23:01 +01:00
Matthias Clasen
6c2b7a9441
Revert "Add a button to back to the palette"
...
This reverts commit 32f1a5ad83
.
2012-02-14 16:39:05 -05:00
Cosimo Cecchi
49a23acd89
test-toplevelembed: use new GtkColorChooserDialog
2012-02-14 16:37:03 -05:00
Cosimo Cecchi
80f0feda98
testgtk: use GtkColorChooserDialog instead of GtkColorSelectionDialog
2012-02-14 16:37:03 -05:00
Cosimo Cecchi
06b34b3fc1
prop-editor: don't use GtkColorButton deprecated API
2012-02-14 16:37:02 -05:00
Matthias Clasen
57e057df60
Fill the custom palette up some more
2012-02-14 16:37:00 -05:00
Matthias Clasen
32f1a5ad83
Add a button to back to the palette
...
This is just for trying this out; if it is considered good,
it will be moved into GtkColorChooserDialog
2012-02-14 16:36:59 -05:00
Matthias Clasen
8f201d62d9
Add API to set palettes
...
I'm not really convinced by this; the API is a little complicated.
May need more thought.
2012-02-14 16:36:56 -05:00
Matthias Clasen
ed5aa953d5
testcolorchooser: Add more options
...
Add a --edit option that brings the color chooser up in
single-color edit mode right away.
2012-02-14 16:36:56 -05:00
Matthias Clasen
c5cfb6e02b
Rework the API a bit
...
Rename get/set_color to get/set_rgba and show_alpha to use_alpha,
to match existing GtkColorButton API and let GtkColorButton implement
GtkColorChooser.
2012-02-14 16:36:55 -05:00
Matthias Clasen
8178578359
Make alpha optional
2012-02-14 16:36:51 -05:00
Matthias Clasen
759765114f
Add a simple color chooser test
2012-02-14 16:36:49 -05:00
Benjamin Otte
01193bcae2
tests: Reenable a11y tree-relationships test
...
It passes now.
2012-02-11 04:46:43 +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
71efe31f16
Move widget-factory to demos/
...
Lets install this, for the benefit of artists everywhere.
2012-02-09 08:45:40 -05:00
Matthias Clasen
b4c31b070f
widget-factory: add an about dialog
...
This is a first step towards making widget-factory an installed
demo.
2012-02-09 08:08:23 -05:00
Matthias Clasen
20c3f95e7b
Adapt expected output
...
A recent string change in GtkAboutDialog needs to be reflected
here.
2012-02-06 16:11:27 -05: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
Matthias Clasen
ac9a94b7af
Fix declarations-valid-15 css parser test
2012-02-06 14:44:21 -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
Matthias Clasen
b5d5e6427a
Fix declarations-valid-14 css parser test
2012-02-06 14:06:20 -05: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
2fdadb053c
tests: Add 'px' to css tests
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
82b739c490
tests: Add parsing test for background-size
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
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
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
Carlos Garcia Campos
3c486ee96d
testgtk: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Ryan Lortie
7c1717886a
Remove one last user of gmenumarkup
2012-01-25 20:56:06 -05:00
Matthias Clasen
d6f9eb1ff8
Add more GtkScale mark tests
...
This code tests adding scale marks 'late', and how this interact
with inversion.
2012-01-18 00:58:38 -05:00
Colin Walters
626c08a847
tests/visuals: Squash a compiler warning
2012-01-17 10:24:39 -05:00
Matthias Clasen
0bf41f38ee
Remove appchooser tests from the Makefile as well
2012-01-16 22:37:26 -05:00
Matthias Clasen
173740a2f6
Remove the appchooser a11y dump test as well
...
This test is also affected by treeview a11y fallout.
2012-01-16 21:55:43 -05:00
Matthias Clasen
1aff20b93e
Remove tree.ui a11y dump test
...
This is just broken currently; it needs fixing before it can come
back.
2012-01-16 21:07:36 -05:00
Matthias Clasen
d8b86bcb2b
Disable broken tree-relationships tests for now
...
Needs to be fixed up before it can come back.
2012-01-16 21:06:11 -05:00
Matthias Clasen
f29195e741
Adapt to focus changes in the treeview
2012-01-16 21:04:24 -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
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
Matthias Clasen
fa7207dcdd
Add an non-symmetric mark example
...
This makes it easier to spot problems with inverting.
2012-01-15 14:13:10 -05:00
Matthias Clasen
eda949c5f3
Make testscale more versatile
2012-01-15 14:13:10 -05:00
Cosimo Cecchi
27f6441bb2
visuals: remove copy paste leftover
2012-01-12 17:31:00 -05:00
Cosimo Cecchi
9283ca93c5
visuals: add a runner for visual GtkBuilder files
...
This is useful to sketch out in GtkBuilder widgets in different states
all at once, so that we can check theming is right for them.
Add some initial UI files for primary-toolbar and inline-toolbar widgets.
2012-01-12 17:05:36 -05:00
Cosimo Cecchi
d994ace41e
tests: add a CSS test for currentColor in border-color
2012-01-11 17:37:21 -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
Dan Winship
9c7d795d5a
testlogout: actually quit if told to
...
https://bugzilla.gnome.org/show_bug.cgi?id=667705
2012-01-11 12:00:06 -05:00
Cosimo Cecchi
b02591bfae
widget-factory: make the combobox entry focusable
2012-01-11 11:46:56 -05:00
Cosimo Cecchi
d286a1ff4c
widget-factory: add items to the entry dropdown
2012-01-11 11:22:45 -05:00
Benjamin Otte
945b9ff9e2
reftests: Add reftest for empty area fix
2012-01-11 15:48:54 +01:00
Rico Tzschichholz
f24dd8f067
Fix some missing renames of GtkApplicationEndStyle
2012-01-11 08:49:34 +01:00
Matthias Clasen
1c486fb8b8
Simplify logout notification api
...
We don't expose ::quit-requested as API anymore. Instead, we expect
users to register inhibitors when needed. Without quit-requested,
there is no need for ::quit-cancelled and gtk_application_quit_response
anymore.
We still emit ::quit when the application is about to quit.
2012-01-10 21:45:30 -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
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
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
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
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
f62c79b41c
tests: Quit widget-factory when someone presses quit
2012-01-09 18:37:51 +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
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
e9dfb8d5b8
tests: Add tests for 'inherit' and 'initial'
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
Rui Matos
c98e9c94e7
widget-factory: Make the second spin button insensitive
2012-01-09 16:31:11 +00:00
Matthias Clasen
0191f11a7a
Add a test for the new session api
2012-01-08 02:15:49 -05:00
Benjamin Otte
2359f03b6b
tests: Fix deprecation warnings in prop-editor
2012-01-07 16:14:31 +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
Javier Jardón
08a2b910e5
tests: Use g_list_free_full() convenience function
2012-01-05 04:22:42 +01:00
Javier Jardón
1796e2f6ba
test/testgtk.c: Fix compilation warning
2012-01-03 16:58:42 +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
Javier Jardón
465301c64f
tests/testgtk: Do not use GdkColor-based api
2011-12-26 17:12:20 +01:00
Benjamin Otte
396ae8f1de
tests: Make widget-factory close when window is closed
2011-12-23 22:30:45 +01:00
Javier Jardón
325142fba7
tests/testcombo.c: Use GdkRGBA instead GdkColor
2011-12-20 18:32:15 +00:00
Javier Jardón
9635759548
tests/testgtk.c: Remove death code
2011-12-20 17:51:59 +00:00
Matthias Clasen
4877799145
Update testgmenu to latest api changes
2011-12-19 12:51:11 -05:00
Ryan Lortie
2f78238872
gmenu testcase: update to glib API changes
2011-12-19 12:51:10 -05:00
Matthias Clasen
e7b6fa4449
Only add a separator when a section ends
2011-12-19 12:51:10 -05:00
Matthias Clasen
7ee18bd74a
Make it build against the current wip/menus-rebase3 branch
2011-12-19 12:51:07 -05:00
Colin Walters
0455a9596f
testgmenu: #ifdef out non-compiling code for now
2011-12-19 12:51:07 -05:00
Matthias Clasen
9131849eec
testgmenu: Insert separators after sections
...
The previous code was only inserting a separator when a new
section was starting right away.
2011-12-19 12:45:51 -05:00