Matthias Clasen
1af417a82d
testadjustsize: Keep using an alignment
...
We are explicitly comparing GtkAlignment with its replacements
here.
2014-05-23 20:42:01 -04:00
Jasper St. Pierre
695ee3fc19
tests: Remove unused args
2014-05-22 11:17:32 -04:00
Matthias Clasen
69cef3c9b4
tests: Adapt to gtk_widget_reparent deprecations
2014-05-22 08:50:18 -04:00
Matthias Clasen
cbb5e27b3e
tests: Update for GtkMisc deprecations
2014-05-22 08:49:18 -04:00
Matthias Clasen
39ccbe6549
tests: Drop manual property editor
...
No need for this anymore, now that we have the inspector everywhere.
2014-05-22 08:32:48 -04:00
Matthias Clasen
f9a0a96eb4
Avoid deprecation warnings
...
This is testing deprecated API, after all...
2014-05-13 08:45:35 -04:00
Matthias Clasen
7840bad5d7
Drop most uses of GtkMisc in tests
...
Replace them by GtkWidget h/valign. The only remaining uses
are those where a size group is involved; they can't be replaced
until GtkLabel stops looking at GtkMisc alignment for size
allocation.
2014-05-13 07:43:21 -04:00
Matthias Clasen
3db60baf2d
teststack: don't enumerate transitions manually
...
Thats what introspection is for.
2014-05-02 17:43:18 -04:00
Philip Chimento
5b5813fcdc
stack: Add counterparts of OVER_UP_DOWN transition
...
The GtkStackTransitionType enum now has OVER_DOWN_UP, OVER_LEFT_RIGHT,
and OVER_RIGHT_LEFT values to complement OVER_UP_DOWN.
https://bugzilla.gnome.org/show_bug.cgi?id=726676
2014-05-02 16:54:41 -04:00
Matthias Clasen
f3ba001a1d
GtkMenuSectionBox: Always show separators for labeled sections
...
...unless they are empty.
2014-04-29 12:19:53 -04:00
Matthias Clasen
c8e15e43e9
testmenubutton: Add a toggle for use-popover
2014-04-28 21:55:41 -04:00
Matthias Clasen
7fa1133912
Add an example of iconic rendering
...
testpopover now shows several examples of icon buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=727477
2014-04-28 14:20:27 -04:00
Matthias Clasen
37c9a9aafe
Fix testmenubutton
...
The menu model examples was messing up the order of its items.
2014-04-26 17:49:52 -04:00
Matthias Clasen
45735c5b3c
tests: add missing files to EXTRA_DIST
...
https://bugzilla.gnome.org/show_bug.cgi?id=728846
2014-04-25 22:12:04 -04:00
Matthias Clasen
516f1e1808
Add missing templates to testdialog
...
This makes the template test cases not crash. The templates also
serve to test the new action widget support.
https://bugzilla.gnome.org/show_bug.cgi?id=728846
2014-04-25 22:11:54 -04:00
Benjamin Otte
3f23f20ca8
tests: Don't use deprecated functions in testselection
2014-04-10 17:06:27 +02:00
Benjamin Otte
6d62f84dae
tests: Make testlockbutton not use deprecated API
2014-04-10 17:00:44 +02:00
Benjamin Otte
949aa98a8f
testgtk: Don't use deprecated functions in selection test
2014-04-10 16:53:42 +02:00
Benjamin Otte
5600499c2f
testgtk: Remove rc file test
...
The test didn't work anymore since RC files stopped being used in 3.0.
2014-04-10 16:50:32 +02:00
Benjamin Otte
27ada645ca
testgtk: Don't use deprecated functions in progress bar test
2014-04-10 16:48:13 +02:00
Benjamin Otte
78ae3690fa
testgtk: Don't use deprecated functions in event watcher test
2014-04-10 16:46:07 +02:00
Benjamin Otte
6d56ef2d52
testgtk: Don't use deprecated functions in scrolled windows test
2014-04-10 16:42:59 +02:00
Benjamin Otte
2a0d046df3
testgtk: Don't use deprecated functions in dialogs test
2014-04-10 16:36:16 +02:00
Benjamin Otte
4f7a972aac
testgtk: Make dialogs example work without static variable
...
Makes it a bit more complicated, but meh.
2014-04-10 16:16:41 +02:00
Benjamin Otte
38149c472e
testgtk: Clean up dialog example
...
Don't pass a static variable to a callback, when the static variable
could just be deinfed in the callback.
2014-04-10 16:07:05 +02:00
Benjamin Otte
27770485f8
testgtk: Don't use deprecated functions in flipping test
2014-04-10 14:29:51 +02:00
Benjamin Otte
11e17262b7
testgtk: Don't use deprecated functions in scrolling test
2014-04-10 02:40:49 +02:00
Benjamin Otte
9cbd681174
testgtk: Don't call deprecated function in mainloop test
2014-04-10 02:36:38 +02:00
Benjamin Otte
e109894f37
tests: Add deprecation guards
2014-04-10 02:29:54 +02:00
Matthias Clasen
ac22ff3bda
Add a delayed state test case
...
This adds a switch with delayed state change to testswitch,
demonstrating the functionality that was added in the previous
commit.
2014-04-06 01:52:48 -04:00
Matthias Clasen
ccc4fb8512
Improve list selection example
...
Print out signals, so we see how often they are emitted.
2014-04-06 01:44:38 -04:00
Matthias Clasen
92eab67a49
Add a list box selection testcase
2014-04-06 01:44:37 -04:00
Matthias Clasen
17ee80aafe
Drop an unnecessary include
...
These tests are better if they can be built standalone.
2014-04-02 12:41:24 -04:00
Matthias Clasen
bf79c8f0df
Add a big combobox test case
...
I've seen many bugs about long combo box popups getting misplaced
or wrongly sized. Time to add a testcase.
2014-04-02 09:51:01 -04:00
Matthias Clasen
206d43dcb4
Add a testcase for icons with emblems
...
This is a testcase for
https://bugzilla.gnome.org/show_bug.cgi?id=726830
2014-03-24 20:17:21 -04:00
Matthias Clasen
f5dc69ab8e
Add at testcase for a message dialog with icon
...
Icons in message dialogs may be deprecated, but we still need
to place them properly, so add a testcase.
2014-03-18 19:53:36 -04:00
Matthias Clasen
08f8fd2f5c
Test size constraints
...
This adds some min/max size hints to testimage.
2014-03-14 13:46:31 -04:00
Carlos Garnacho
dc26dfd0c2
tests: fix testcalendar
...
Missing argument in gtk_style_context_get(), fooled by varargs.
2014-03-07 02:50:27 +01:00
Matthias Clasen
441d8f6858
testdialogs: Add message dialog examples
...
Related to
https://bugzilla.gnome.org/show_bug.cgi?id=723668
2014-03-03 07:18:39 -05:00
Matthias Clasen
600a847cca
Make testpopover more versatile
...
Allow testing alignment and positioning.
2014-02-22 15:22:16 -05:00
Benjamin Otte
c1e2b22a2d
tests: Connect signals in visuals test
...
This is useful for demoing animations.
2014-02-20 02:10:07 +01:00
Benjamin Otte
eae03be479
tests: Don't use show_all() for a builder file
...
It's enough to gtk_widget_show() the window as all the widgets in a
builder file a marked properly for visibility.
2014-02-20 02:10:07 +01:00
Matthias Clasen
ac907cd8aa
Add a testcase for box sizing
2014-02-16 23:24:13 -05:00
William Jon McCann
9b81131003
tests: fix volume button
2014-02-13 20:47:24 -05:00
William Jon McCann
70a2772afd
tests: add a visibility toggle to the action bar test
...
https://bugzilla.gnome.org/show_bug.cgi?id=723929
2014-02-12 08:08:03 -05:00
Matthias Clasen
59099cd6e7
Add a test for model-based popovers
...
https://bugzilla.gnome.org/show_bug.cgi?id=723014
2014-02-07 15:11:51 -05:00
Matthias Clasen
be60724d08
Add a testcase for various dialog headerbar scenarios
2014-02-02 17:35:11 -05:00
William Jon McCann
b69ac965ea
tests: fix button underline in testassistant
...
https://bugzilla.gnome.org/show_bug.cgi?id=723212
2014-01-29 20:56:21 -05:00
Matthias Clasen
3948a485a7
Remove deprecations and warnings from tests
...
This removes one instance of gtk_dialog_get_action_area.
2014-01-24 21:09:34 -05:00
Matthias Clasen
4caf302498
Remove deprecation warnings from demos and tests
...
There were a few uses of gtk_widget_get_root_window that
need to be removed.
2014-01-24 21:08:59 -05:00
William Jon McCann
00326d3362
Add an expand button box type
...
https://bugzilla.gnome.org/show_bug.cgi?id=720059
2014-01-17 17:52:07 -05:00
Andika Triwidada
0a768d274d
Changed obsolete FSF portal addresses to web address
...
Fixed https://bugzilla.gnome.org/show_bug.cgi?id=721530
2014-01-12 19:56:49 +07:00
Alexander Larsson
59bf558995
testtextview: Add test for gtk_text_view_add_child_in_window
...
https://bugzilla.gnome.org/show_bug.cgi?id=711826
2014-01-10 12:08:51 +01:00
Matthias Clasen
0f9f3e8fa2
Make testsplitheaders more robust
...
Same empty string issue that I fixed in GtkHeaderBar a few days
ago.
2014-01-07 13:45:55 -05:00
Matthias Clasen
07f9b3ffa2
Add an action bar test
...
https://bugzilla.gnome.org/show_bug.cgi?id=721665
2014-01-07 08:46:37 -05:00
William Jon McCann
0a95515bfe
tests: use actionbar in headerbar test
...
This is a great example of where headerbar should not be used.
https://bugzilla.gnome.org/show_bug.cgi?id=721665
2014-01-07 08:46:37 -05:00
Matthias Clasen
c93182c416
Make testtitlebar more versatile
...
Test adding multiple custom widgets at each end. This exposes
that we're doing it wrong - the pack-end widgets are ordered
in the wrong way.
2014-01-06 23:37:05 -05:00
Matthias Clasen
ae4d82dc0c
Avoid compiler warnings
2014-01-06 20:35:29 -05:00
William Jon McCann
dae65b7c62
tests: add menu alignments to the menubutton test
...
https://bugzilla.gnome.org/show_bug.cgi?id=720939
2014-01-06 13:55:42 -05:00
William Jon McCann
b2dbcea3a2
tests: add some space to menubutton test
...
https://bugzilla.gnome.org/show_bug.cgi?id=720939
2014-01-06 13:55:42 -05:00
Matthias Clasen
d28ca4cdce
Add an example for split headers
...
This shows how to deal with variability in window decorations
with split header bars.
2014-01-06 10:32:19 -05:00
Colin Walters
c45057c88a
testbbox: Remove unused variable
...
This was the only compiler warning in Continuous for gtk3.
2014-01-04 17:52:22 -05:00
Clayton Walker
568e867dad
gtk: remove unused GTK_BUTTONBOX_DEFAULT_STYLE from gtkenums.h tests: remove GTK_BUTTONBOX_DEFAULT_STYLE from testbbox.c and fix crashing
...
https://bugzilla.gnome.org/show_bug.cgi?id=721317
2014-01-04 13:56:42 -05:00
Matthias Clasen
7e1a4800fa
Redo header bar decorations once more
...
Applications need a way to fix or adapt the decoration layout,
for situations like split header bars. Setting the layout from
the theme with a style property did not offer a good way to do
this, and the ::show-close-button property does not provide
fine-grained control.
To improve the situation, move the layout string to a property of
GtkHeaderBar which is backed by a setting. This allows platforms to
set a default button layout independent of the theme, while applications
can override the default.
The style GtkWindow style property is now deprecated and ignored.
2013-12-21 21:58:24 -05:00
Matthias Clasen
8ba7c7f64d
testtitlebar: Add custom content
...
This will help in tracking down size allocation issues
in GtkHeaderBar.
2013-12-16 20:35:23 -05:00
Matthias Clasen
abe994f1d7
testtitlebar: Set a window icon
...
This reveals that GtkHeaderBar does not pick up window icons
correctly for it menu button, currently.
2013-12-13 01:02:36 -05:00
Matthias Clasen
a9eb813054
testtitlebar: Fix initial values
...
Make sure that the controls show the initial values fo the
headerbar properties, not the other way around.
2013-12-12 21:18:11 -05:00
Matthias Clasen
2f90781073
testtitlebar: more tests
...
Turn this into a GtkApplication with an app menu.
Allow to override the gtk-shell-shows-app-menu setting
and the decoration-button-layout style property.
2013-12-12 21:12:44 -05:00
Matthias Clasen
7ab7a262c1
Make testtitlebar more testy
...
Now that the nice titlebar example is in gtk3-demo, we can
use testtitlebar as an actual testbed for headerbar stuff.
This immediately reveals size allocation issues when titlebar
widgets change size.
2013-12-12 16:56:41 -05:00
Volker Sobek
d881edd33a
testtitlebar: Fix -Wunused-variable warning
...
GtkWidget *title is no longer used.
https://bugzilla.gnome.org/show_bug.cgi?id=720296
2013-12-12 02:15:20 +01:00
Matthias Clasen
0191760bdc
Use ::has-subtitle in testtitlebar
...
This also gets simplified.
2013-12-10 23:03:12 -05:00
Matthias Clasen
56719c6363
Don't use depeprecated api
...
GtkPrintUnixDialog and testtitlebar were still using
gtk_widget_set_margin_left/right. Switch them over to
gtk_widget_set_margin_start/end.
2013-12-01 16:55:57 -05:00
Benjamin Otte
8765269478
tests: Add max-width-chars to testwindowsize test
2013-11-25 03:56:21 +01:00
Martin Renold
faf43e2e42
tests: Make testinput example not compress events
2013-11-16 01:50:53 +01:00
Martin Renold
f8ba25877d
testgtk: Don't use GDK_POINTER_MOTION_HINT_MASK anymore
2013-11-16 01:50:53 +01:00
Yosef Or Boczko
719dd636a9
Replace all margin-left and margin-right with margin-start and margin-end
...
https://bugzilla.gnome.org/show_bug.cgi?id=710238
2013-11-15 02:54:35 +01:00
Matthias Clasen
f911d17e56
Test duplicate shortcuts
...
Add an application shortcut for the Music folder in testfilechooser.
The file chooser used to filter duplicates out, but this broke
in the sidebar merge.
2013-11-09 19:00:17 -05:00
Matthias Clasen
e245fd8e68
Fix testtoolbar
...
The conversion from stock to icon names left some items without
a label, which in turn shows up as empty menuitems in the overflow
menu.
2013-11-09 13:23:47 -05:00
Benjamin Otte
74dc941c22
tests: Make testflowbox test not emit warnings
2013-11-04 16:36:11 +01:00
Matthias Clasen
05907afc1c
Add various tests for stock widgets
...
This test demonstrates that various deprecated ways
to construct buttons and menuitems still work as they
are supposed to, including always-show-image functionality.
2013-10-07 18:19:16 -04:00
Matthias Clasen
943d575ec3
Add GtkFlowBox
...
GtkFlowBox is a container that its children in a reflowing
grid, which can be oriented horizontally or vertically.
It is similar to GtkListBox in that the children can
be sorted and filtered, and by requiring a dedicated child
widget type, GtkFlowBoxChild. It is similar to GtkTreeView
in that is supports a full set of selection modes, including
rubberband selection.
This is the culmination of work that has happened in the
egg-list-box module, and earlier in libegg. The origins of
this code are the EggSpreadTable in libegg, which was written
by Tristan van Berkom. It was moved to egg-list-box and
renamed EggFlowBox by Jon McCann, and I gave it some finishing
touched in the flowbox-improvements branch of that module.
2013-10-06 23:31:17 -04:00
Benjamin Otte
859805bda4
testgtk: Remove idle test
...
The test is broken, written like it's 1999 and testing a feature that
I'm about to deprecate.
2013-10-05 14:57:24 +02:00
Benjamin Otte
3d4277facb
tests: Don't call gtk_style_context_invalidate()
...
It's not needed anymore.
2013-10-05 13:57:51 +02:00
Matthias Clasen
256da35c11
Test new transition types
...
We should make teststack pick up new transitions automatically.
For now, we have to add them manually.
https://bugzilla.gnome.org/show_bug.cgi?id=707187
2013-09-25 23:54:31 -04:00
Paolo Borelli
e59c28743a
Add a needs-attention child property to GtkStack
...
The child property is watched by the StackSwicther which in turns sets a
needs-attention css class on the corresponding button, so that the theme
can for instance show a throbbing animation if one of the hidden pages
needs the user attention.
https://bugzilla.gnome.org/show_bug.cgi?id=707153
2013-09-25 22:34:22 -04:00
Alexander Larsson
ae24cbc11f
testicontheme: Add some tests for scales
2013-09-23 12:45:34 +02:00
Matthias Clasen
61ebc98a41
Add a test for icons in menu models
...
testmenubutton now features an icon.
2013-09-08 22:37:50 -04:00
Matthias Clasen
e725b05f79
Add a testcase for custom levels in GtkLevelBar
...
This is related to https://bugzilla.gnome.org/show_bug.cgi?id=707695
2013-09-08 16:45:25 -04:00
Matthias Clasen
94d5a40264
Don't use deprecated GSimpleActionGroup api
...
Instead, use the corresponding GActionMap api.
2013-09-05 18:51:04 -04:00
Matthias Clasen
5929103d88
Don't call deprecated combobox api
...
gtk_combo_box_set_title is not needed anymore, since we
dropped the tearoff support.
2013-09-05 18:51:04 -04:00
Matthias Clasen
88293f89f0
Add a test for animated row insertion/removal
...
This is just a crude example for how to use revealers to
animate insertion and removal of rows in a listbox.
2013-08-26 23:07:05 -04:00
Matthias Clasen
eed2799bfb
Add a way to test titlebars in dark theme
2013-08-26 23:07:04 -04:00
Matthias Clasen
b38a096aee
GtkHeaderBar: optionally add a close button
...
Add a boolean property that controls whether a window close button
will be shown in the header bar or not. Doing this in the toolkit
will ensure consistency of the visual apperance.
https://bugzilla.gnome.org/show_bug.cgi?id=702971
2013-08-05 01:37:58 +02:00
William Jon McCann
810313763e
tests: don't use tearoff menus in combobox
2013-07-18 12:16:02 -04:00
Matthias Clasen
8137b282e9
fix close button in testtitlebar as well
...
Same disease as with the previous fix.
2013-07-06 23:11:19 -04:00
Matthias Clasen
6aa1d69978
Fix a copy-paste error
2013-07-01 13:18:22 -04:00
William Jon McCann
a9e82cd46a
Deprecate and ignore gtk-enable-tooltips setting
...
It is enabled by default except on touch input devices.
2013-06-30 14:28:02 -04:00
William Jon McCann
7ca327c9bb
Deprecate the unused gtk-file-chooser-backend setting
2013-06-30 13:44:24 -04:00
William Jon McCann
3d5d3e8eae
Fix a couple of deprecation warnings related to stock items
2013-06-30 13:14:18 -04:00
William Jon McCann
c96a1c4980
Deprecate GtkAction and GtkUIManager
...
It is recommended to use GAction et al and GtkBuilder.
2013-06-30 11:19:50 -04:00
William Jon McCann
f7f46b9155
Port print-editor test to GtkBuilder from UIManager
2013-06-30 11:19:50 -04:00
Matthias Clasen
cf006cbee3
Add a titlebar testcase
...
This is an experiment towards how we want client-side titlebars
to look.
2013-06-29 08:52:04 -04:00
Matthias Clasen
860197a7d2
testheaderbar: fix a mmemonic
2013-06-28 16:08:15 -04:00
William Jon McCann
b86588e9f5
Deprecate GtkImageMenuItem
...
Use GtkMenuItem for menus with only text or GMenu for those
with icons for "nouns" and just text for "verbs".
2013-06-27 18:48:46 -04:00
William Jon McCann
aef9dca9d5
Deprecate GtkIconFactory, GtkIconSet, GtkIconSource
...
We want to use GtkIconTheme instead. It is worth noting that
the parts that remain undeprecated are GtkIconSize and gtk_icon_size_lookup.
2013-06-26 20:02:27 -04:00
Benjamin Otte
427d4195a1
tests: Ignore deprecation warnings
2013-06-26 15:51:32 +02:00
William Jon McCann
6e22c4cfde
Fix some regressions from stock migration
2013-06-25 12:39:19 -04:00
William Jon McCann
fc71cbe5a6
Remove most of the stock API usage from the tests
...
With the exception of GtkActions and the tests for stock items.
2013-06-24 19:53:08 -04:00
Federico Mena Quintero
8d47410426
filechooser: In testfilechooser, be strict about the --action option
...
It would default to GTK_FILE_CHOOSER_ACTION_OPEN if the user's specified --action could not be
parsed. I can never remember what the right options are, so make the program bail out
if the user specifies an unrecognized option.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2013-06-21 10:41:39 -05:00
Federico Mena Quintero
8b1c918867
filechooser: In testfilechooser, add buttons to get the selection and the current name
2013-06-19 13:37:40 -05:00
Alexander Larsson
cae7d05f24
testlist: Test double click mode
2013-06-17 15:15:07 +02:00
Erick Pérez Castellanos
33a1c4d6e0
GtkStack: Add position-dependent slide transitions
...
These go left/right or up/down depending on the relative
order of the children being switched between.
2013-06-13 20:33:42 +02:00
Alexander Larsson
6d71f7f61b
testgtk: Test GtkListBox placeholder widgets
2013-06-13 12:17:07 +02:00
Alexander Larsson
cc4ac1ee70
GtkListBox: Rename separators to headers
2013-06-13 12:17:07 +02:00
Alexander Larsson
043d445a03
testgtk: Add ListBox test
...
This is a simple test of a scrolling listbox with sorting, filtering
and a header row.
2013-06-13 12:17:06 +02:00
Alexander Larsson
3c90b2c42c
tests: Add testlist testing GtkListBox
2013-06-13 12:17:06 +02:00
Benjamin Otte
1e8640f294
testgtk: Disable deprecations when using old functions
2013-05-30 20:01:33 +02:00
Matthias Clasen
530edd0d9b
Add more tests to testheaderbar
...
Check that one can use widgets other than GtkHeaderBar as
titlebars.
2013-05-25 20:56:14 -04:00
Matthias Clasen
47b2248eb3
testwindowsize: show the actual window size
2013-05-25 13:12:56 -04:00
Matthias Clasen
526958cd53
Add an interactive window sizing test
2013-05-25 11:42:28 -04:00
Matthias Clasen
895a81c793
Drop test images
...
These were left behind when gdk-pixbuf was split off.
2013-05-22 23:02:31 -04:00
Benjamin Otte
172303f550
build: Move tests/reftests to testsuite/reftests
2013-05-15 15:37:17 +02:00
Benjamin Otte
edde840513
build: Move tests/css to testsuite/css
2013-05-15 15:37:17 +02:00
Benjamin Otte
2c8e719b5a
build: Move tests/a11y to testsuite/a11y
2013-05-15 15:37:16 +02:00
Matthias Clasen
c4f0ff9d77
Install the other a11y tests as well
2013-05-14 23:51:37 -04:00
Matthias Clasen
53b3d068cb
Install the accessibility-dump tests
2013-05-14 23:21:18 -04:00
Matthias Clasen
a631056808
Add a --directory option to accessibility-dump
...
This will be used to tell it where its test data resides
when running the a11y tests installed.
2013-05-14 23:21:18 -04:00
Matthias Clasen
af7771a3be
Update expected test output for some a11y tests
2013-05-14 23:21:17 -04:00
Matthias Clasen
1b99a016a3
Add a test for dialog placement with csd
...
Taken from
https://bugzilla.gnome.org/show_bug.cgi?id=700056
2013-05-13 06:06:10 -04:00
Matthias Clasen
8fcfbc179c
Test a few more titlebar things
...
Add tests for fullscreening and disposing with custom titlebar
to testheaderbar.
2013-05-12 21:01:59 -04:00
Colin Walters
a8da29b8db
Add --enable-installed-tests, use it for reftests
...
See https://live.gnome.org/GnomeGoals/InstalledTests
https://bugzilla.gnome.org/show_bug.cgi?id=699601
2013-05-09 19:09:49 +02:00
Benjamin Otte
2c1d7cf074
reftests: Automatically recurse into directories
2013-05-09 19:09:49 +02:00
Colin Walters
f297549139
reftests: Add a --directory/-d option
...
This sets the directory we chdir() to, so we can use relative filenames
in ui files.
Some properties like to take filenames...
2013-05-09 19:09:49 +02:00
Colin Walters
9e57d388e3
reftests: Split out shell scripts from tests
...
They are just utilities to create tests, don't dump them in with the
tests.
This is in preparation for installed tests.
2013-05-09 19:09:49 +02:00
Colin Walters
dc216cf537
reftests: Use $(NULL) in the Makefile
2013-05-09 19:09:49 +02:00
Benjamin Otte
19fcd12177
reftests: Make window size not influence test
...
The test is supposed to definitely wrap, make sure it does.
2013-05-07 14:06:11 +02:00
Colin Walters
41bf557012
reftests: Don't use spaces in Makefile first line
...
Otherwise Emacs makes one's life miserable.
2013-05-03 11:08:51 -04:00
Benjamin Otte
7cecc8e524
a11y: Remove AtkSelection implementation from combobox
...
AtkSelection requires that the immediate children of the object are the
selectable items. The combobox however is implemented with just 1 child:
The popup menu.
The popup menu is implementing the selectable interface.
Test are updated to reflect this change.
2013-05-02 15:31:26 +02:00
Matthias Clasen
6c79fb72bd
Revert "Temporarily remove window-border reftest"
...
This reverts commit cf6695088e
.
2013-05-01 22:23:11 -04:00
Matthias Clasen
3c7fbe237d
Remove window-border tests from makefile too
2013-05-01 21:43:19 -04:00
Matthias Clasen
286d3466a1
Revert "Temporarily remove button-wrapping reftest"
...
This reverts commit 851b631c4e
.
2013-05-01 21:31:12 -04:00
Matthias Clasen
e9e4c8b168
Disable broken picker a11y test
...
The GtkComboBox accessible implementation is pretty broken,
and it shows through in this a11y test. Disable it for now.
2013-05-01 21:03:55 -04:00
Matthias Clasen
b84b933cac
Update a few a11y test results
2013-05-01 19:07:10 -04:00
Matthias Clasen
51bbb76d35
Fix image-load-from-file reftest
...
Need to reset css here to avoid theme interference.
2013-05-01 19:07:10 -04:00
Matthias Clasen
3605e6c900
Temporarily remove grid-span reftest
...
This was testing grid size allocation changes that had to be
reverted because they broke gnumeric.
2013-05-01 19:07:10 -04:00
Matthias Clasen
cf6695088e
Temporarily remove window-border reftest
...
It is broken by unfinished csd changes.
2013-05-01 19:07:10 -04:00
Matthias Clasen
851b631c4e
Temporarily remove button-wrapping reftest
...
Its broken by unsettled GtkBin size allocation changes.
2013-05-01 19:07:10 -04:00
Benjamin Otte
2d35f7a8e1
tests: make deprecated functions not warn
...
We still want to test them though.
2013-05-01 17:50:14 +02:00
Benjamin Otte
8f06590712
tests: Add reftest for broken button sizing
...
https://bugzilla.gnome.org/show_bug.cgi?id=698433
2013-05-01 16:41:11 +02:00
Matthias Clasen
ef759ef19d
Add a testcase for empty grid rows
...
This adds a testcase described in bug 698660 to testgrid.
2013-04-28 18:46:11 -04:00
Owen W. Taylor
a082f4d804
animated-resizing, video-timer: Add missing return value from ::draw
...
When we connect to GtkWidget::draw, the signal handler should have
a return value. This fixes overdrawing client-side decorations.
2013-04-25 13:44:58 -04:00
Owen W. Taylor
8c68050af8
tests/scrolling-performance: Add a new test for GtkViewport performance
...
Add a test that takes four copies of the widget-factory widgets and
scrolls them around to test how smoothly we can scroll and draw.
2013-04-23 14:04:40 -04:00
Owen W. Taylor
b7063509f8
tests/animated-resizing: Split frame statistics out into a separate file
...
Split the code for computing frame rate and latency into a separate file
so we can use it from multiple tests.
2013-04-23 14:04:40 -04:00
Alexander Larsson
2b4c9983da
Add tests/testbaseline
2013-04-23 05:58:07 +02:00
Matthias Clasen
d7f43c30a3
GtkRevealer: Add a fading animation
...
Using a container for this is not necessarily the most
elegant solution, but it lets us reuse the animation
machinery in GtkRevealer.
2013-04-22 12:42:38 -04:00
Matthias Clasen
0bd173e3d8
Forgotten file
2013-04-22 12:42:37 -04:00
Matthias Clasen
443459b52e
Add GtkRevealer
...
This is a widget that can hide or show (ie reveal) its child
in an animated fashion.
This widget was initially developed in libgd.
2013-04-22 12:42:37 -04:00
Matthias Clasen
c37b30f317
GtkStack: add vertical slide transitions
...
We allow transitions that slide up or down.
2013-04-21 21:51:26 -04:00
Matthias Clasen
e72a78c4e6
Add a way to specify transition types on the fly
...
Add a gtk_stack_set_visible_child_full that takes a
transition type.
2013-04-21 21:51:25 -04:00
Matthias Clasen
2e39c4bab8
Add GtkStack
...
Add separate GtkStack and GtkStackSwitcher widgets that are an
alternative to GtkNotebook. Additionally, GtkStack supports
animated transitions when changing pages.
These widgets were initially developed in libgd.
2013-04-21 21:51:24 -04:00
Benjamin Otte
8687fbc15e
reftests: Add a test for window default size
...
https://bugzilla.gnome.org/show_bug.cgi?id=697275
2013-04-06 10:47:55 +02:00
Benjamin Otte
70a0d1a32d
tests: Remove multiscreen code from teststusicon
2013-04-06 10:47:55 +02:00
Benjamin Otte
4b75077ccd
tests: Remove testmultiscreen example
...
There aren't multiple screens anymore, so no need to test that.
Multiple displays can be tested with gtk-demo and testgtk.
2013-04-06 10:47:55 +02:00
Benjamin Otte
06bd9200cd
testgtk: Get rid of screen part in display & screen test
2013-04-06 10:47:55 +02:00
Thomas Hindoe Paaboel Andersen
4e1c9f16a0
reftests/Makefile.am: remove whitespace following trailing backslash
2013-04-05 23:10:32 +02:00
Benjamin Otte
d80dedf46e
testsensitive: Remove deprecated part
2013-04-02 11:45:44 +02:00
Benjamin Otte
0a82b79012
reftests: Add a reftest for color resolving errors
...
This checks the fixes in the last two commits.
2013-03-28 23:18:59 +01:00
Kristian Rietveld
6f607fc8b4
quartz: move atom/pasteboard type conversions functions to GDK
...
(cherry picked from commit a269c2f8d2
)
2013-03-28 13:10:38 +01:00
Matthias Clasen
7069f6a251
Pimp up testheaderbar some more
2013-03-26 20:46:30 -04:00
Matthias Clasen
7c8c242e7e
Expand testgrid to cover row/column removal
2013-03-23 15:43:38 -04:00
Matthias Clasen
33d409d9fd
Add an example for subtitles in header bars
2013-03-19 22:08:13 -04:00
Matthias Clasen
2648ba45c6
test custom titles more thoroughly
...
This adds a way to toggle between custom and non-custom titles
in testheaderbar, which is currently broken.
2013-03-19 20:51:43 -04:00
Matthias Clasen
55969a8a0c
Use gtk_window_set_titlebar in testheaderbar
...
This demonstrates how custom titlebars work both with
and without csd.
2013-03-18 08:50:22 -04:00
Matthias Clasen
4fd67b8c62
Add a headerbar test
...
Add a testcase for GtkHeaderBar that shows how it can be used
without client-side decorations.
2013-03-18 01:03:39 -04:00
Matthias Clasen
cfc0118f6f
Replace GLE reference
...
Recommending gtkparasite is more useful nowadays.
2013-03-17 19:01:25 -04:00
Matthias Clasen
e43956141b
Add another grid sizing reftest
...
This test exercises spanning children such that there are
rows which contain only spanning cells.
2013-03-15 23:38:22 -04:00
Benjamin Otte
2ba15221c0
reftests: Add reftest for separator fixes
...
Reftest for 61c4425161be3146c0c753a766f35442549bfe72.
Includes a workaround for a grid bug which should be removed once
GtkGrid is fixed.
2013-03-15 18:18:40 +01:00
Matthias Clasen
7dd2539e1b
Add a missing runtime check
...
The cursor theme and size settting code was ifdefed to only
be compiled with the X11 backend, but it didn't check for
running under X at runtime. Fix that.
http://bugzilla.gnome.org/695495
2013-03-13 06:04:58 -04:00
Benjamin Otte
b7aa15f505
reftests: Add animation loading test
...
XPM files weren't loaded properly.
https://bugzilla.gnome.org/show_bug.cgi?id=695228
2013-03-13 02:06:29 +01:00
Benjamin Otte
609723b3c1
tests: Add a test for loading images from file
...
Strictly, this belongs in gdk-pixbuf, but GtkImage should have this
working, too.
https://bugzilla.gnome.org/show_bug.cgi?id=694148
2013-02-19 14:33:39 +01:00
Owen W. Taylor
1db87c897f
Add gdk_frame_clock_begin/end_updating()
...
Add an API to start or stop continually updating the frame clock.
This is a slight convenience for applcations and avoids the problem
of getting one more frame run after an animation stops, but the
primary motivation for this is because it looks like we might have
to use timeBeginPeriod()/timeEndPeriod() on Windows to get reasonably
accurate timing, and for that we'll need to know if there is an
animation running.
https://bugzilla.gnome.org/show_bug.cgi?id=693934
2013-02-18 17:14:24 +01:00
Jasper St. Pierre
367364a8e1
Fix deprecations for GtkIconInfo
2013-02-15 19:48:56 -05:00
Owen W. Taylor
7bb07317f3
GtkTickCallback: document use of G_SOURCE_CONTINUE/REMOVE for return value
...
Document that G_SOURCE_CONTINUE and G_SOURCE_REMOVE are the preferred
return values from a tick callback.
2013-02-14 17:19:53 -05:00
Owen W. Taylor
63a36aa434
Merge with Merge GdkFrameHistory into GdkFrameClock
2013-02-14 17:19:53 -05:00
Owen W. Taylor
bb11195ec0
GdkFrameClock: Clean up the public API
...
* remove gdk_frame_clock_get_frame_time_val(); a convenience
function that would rarely be used.
* remove gdk_frame_clock_get_requested() and
::frame-requested signal; while we might want to eventually
be able to track the requested phases for a clock, we don't
have a current use case.
* Make gdk_frame_clock_freeze/thaw() private: they are only
used within GTK+ and have complex semantics.
* Remove gdk_frame_clock_get_last_complete(). Another convenience
function that I don't have a current use case for.
* Rename:
gdk_frame_clock_get_start() => gdk_frame_clock_get_history_start()
gdk_frame_clocK_get_current_frame_timings() => gdk_frame_clock_get_timings()
2013-02-14 17:19:52 -05:00
Owen W. Taylor
515e5f74aa
Merge GdkFrameHistory into GdkFrameClock
...
Now that GdkFrameClock is a class, not interface, there's no real advantage
to splitting the frame history into an aggregate object, so directly
merge it into GdkFrameClock.
2013-02-14 17:19:52 -05:00
Owen W. Taylor
449e8c8856
Add gtk_widget_add_tick_callback(), remove GtkTimeline, etc.
...
Add a very simple GtkWidget function for an "tick" callback, which
is connected to the ::update signal of GdkFrameClock.
Remove:
- GtkTimeline. The consensus is that it is too complex.
- GdkPaintClockTarget. In the rare cases where tick callbacks
aren't sufficient, it's possible to track the
paint clock with ::realize/::unrealize/::hierarchy-changed.
GtkTimeline is kept using ::update directly to allow using a GtkTimeline
with a paint clock but no widget.
2013-02-14 17:19:52 -05:00
Owen W. Taylor
40fa28de3d
video-timer: add simple example of PLL-style clock adjustment
...
The first version of the video-timer simply played back the video
according to the wall clock, and showed each frame at the neareste
presentatin time. But an alternative strategy for playing back
video is that if the frame-rate is an integer-divisor of the
display refresh rate, or very close to that, is to change the playback
speed to complete avoid frame drops and changes in latency.
(This would require resampling audio if present.)
Demonstrate this technique by adding a --pll option to the
video-timer demo.
https://bugzilla.gnome.org/show_bug.cgi?id=685460
2013-02-14 17:19:51 -05:00
Owen W. Taylor
e77a96a0ea
video-timer: add a test case for display at a constant frame rate
...
Add a test case that simulates the timing operaton that goes on
when showing a constant frame rate stream like a video - each
frame is shown at the VBlank interval that is closest to when it
would ideally be timed.
https://bugzilla.gnome.org/show_bug.cgi?id=685460
2013-02-14 17:19:51 -05:00
Owen W. Taylor
9690567d50
animated-resizing: enhance output
...
Show the average and standard deviation of the latency in addition to
the frame rate. Add options to print the output in machine-readable form,
and to control the frequency and total number of statistics that will be
output.
https://bugzilla.gnome.org/show_bug.cgi?id=685460
2013-02-14 17:19:51 -05:00
Owen W. Taylor
574301d34d
animated-resizing: make circle size a #define
...
Clean up the code with a #define for circle size. This also allows
determining we're throttled by number-of-requests or number-of-pixels.
https://bugzilla.gnome.org/show_bug.cgi?id=685460
2013-02-14 17:19:50 -05:00
Owen W. Taylor
a69285da08
Compress motion synchronized with the paint cycle
...
When we have pending motion events, instead of delivering them
directly, request the new FLUSH_EVENTS phase of the frame clock.
This allows us to compress repeated motion events sent to the
same window.
In the FLUSH_EVENTS phase, which occur at priority GDK_PRIORITY_EVENTS + 1,
we deliver any pending motion events then turn off event delivery
until the end of the next frame. Turning off event delivery means
that we'll reliably paint the compressed motion events even if more
have arrived.
Add a motion-compression test case which demonstrates behavior when
an application takes too long handle motion events. It is unusable
without this patch but behaves fine with the patch.
https://bugzilla.gnome.org/show_bug.cgi?id=685460
2013-02-14 17:19:49 -05:00
Owen W. Taylor
623803c1fe
Add a test of an animated resizing window
...
Add a test of a window with an animated size and contents. The
test accepts load factor command line argument to see how things
work as the drawing of the content requires more GPU resources.
https://bugzilla.gnome.org/show_bug.cgi?id=685460
2013-02-14 17:19:49 -05:00
Alexander Larsson
7690846c3f
Add gtk_icon_info_load_icon_async
...
This lets you asynchronously load icons. We need this for gnome-shell
to replace its current non-threadsafe use of GtkIconTheme.
https://bugzilla.gnome.org/show_bug.cgi?id=693802
2013-02-14 22:10:09 +01:00
Matthias Clasen
fbb1ee02bc
Add a test for setting accessible name from gtkbuilder
...
This is wrongly documented in the GtkWidget docs.
2013-02-10 15:47:08 -05:00
Alexander Larsson
97c235405d
css: Add opacity reftest
...
https://bugzilla.gnome.org/show_bug.cgi?id=687842
2013-02-07 11:12:21 +01:00
Alexander Larsson
b57a2c8341
Add widget transparency test to testgtk
...
https://bugzilla.gnome.org/show_bug.cgi?id=687842
2013-02-07 11:11:38 +01:00
Matthias Clasen
cb539841a4
Update expected output again
...
pickers.ui is just too sensitive to environment, and the … in
the output doesn't help.
2013-02-04 10:50:24 -05:00
Matthias Clasen
b166a6bb0e
Avoid deprecation warnings in a11y tests
...
We are testing the deprecated GtkTable here.
2013-02-04 09:27:28 -05:00
Matthias Clasen
0162e92aba
Update a11y test results to match
...
Range widgets have lost their action. Update expected output.
2013-02-04 01:03:37 -05:00
Matthias Clasen
f8050c90fa
Update a11y test results to match
...
The newly added descriptions show up in the accessible
information dumps.
2013-02-04 00:57:46 -05:00
Matthias Clasen
b396e37b96
Update a11y test results to match
...
The new way of setting the icons in GtkMessageDialog changes
the accessible dump output slightly.
2013-02-04 00:57:44 -05:00
Cosimo Cecchi
ce869921ab
Don't use gtk_scrolled_window_add_with_viewport() in tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=693015
2013-02-01 22:58:55 -05:00
Mike Gorse
92f0c5c384
Add accessibility for GtkLevelBar and value test
2013-02-01 11:44:15 -06:00
Olivier Fourdan
7d9751130c
tests: add a test for fullscreen mode
...
https://bugzilla.gnome.org/show_bug.cgi?id=691856
2013-01-25 13:16:57 +01:00
Jasper St. Pierre
cca05d1dc8
Add git.mk to more places
2013-01-24 17:47:34 -05:00
William Jon McCann
a84f244dc0
Add a simple test for activate on single click
...
https://bugzilla.gnome.org/show_bug.cgi?id=345023
2013-01-20 16:49:30 -05:00
Benjamin Otte
96d4eb5411
reftests: Add a reftest for width-chars not shrinking the allocation
...
width-chars and max-width chars should (and do) only change the
requested sizes, not the allocated size of the label.
This came out of an IRC discussion, so no bug.
2013-01-20 20:25:58 +01:00
Benjamin Otte
bef1a5d720
reftests: Add reftest for latest warning fix
2013-01-17 00:45:33 +01:00
Matthias Clasen
cdaa6e036e
Update expected output of a11y tests
...
The output for GtkAboutDialog changed as a result of the
Homepage -> Website string change.
2013-01-14 23:12:36 -05:00
Benjamin Otte
b867970bf4
tests: return 0; from main()
...
So that gcc stops complaining.
2013-01-08 12:23:52 +01:00
Matthias Clasen
9e9824a0a1
Add a test for deriving accessible implementations
...
This is a trivial example. Just check that we can derive
from GtkButtonAccessible, and have a GtkButton subclass
use the derived accessible implementation.
2012-12-27 12:06:22 -05:00
Benjamin Otte
a70e85702f
testgtk: Remove GtkAlignment usage from progressbar test
...
We can use gtk_widget_set_[hv]align here.
2012-12-21 19:47:40 +01:00
Matthias Clasen
33e5866b6f
Update results for Unicode ellises
2012-12-18 00:14:53 -05:00
Matthias Clasen
b85ae11e0e
Update for some changes to selectable/selected state handling
...
Since this is no longer implemented automatically in atk, some
accessibles, such as menus, loose their selectable state.
2012-12-18 00:02:09 -05:00
Benjamin Otte
a405c9917c
tests: Don't call to-be-deprecated function
2012-12-06 02:57:18 +01:00
Benjamin Otte
85d8f3c51e
reftests: Fix wrong name in test
...
Typo in d8306aaeb3
2012-12-04 20:02:36 +01:00
Benjamin Otte
d8306aaeb3
reftests: Add a test for the new font size names
2012-12-01 16:27:45 +01:00
Benjamin Otte
cc0b493216
reftests: Fix a reftest
...
Recent Adwaita changes caused diffs. We don't want that, so we run this
test against the default settings.
2012-11-30 20:10:23 +01:00
Alexander Larsson
e36f80f0ef
css: Make test pass
...
The new css tree may change the order of selectors (keeping the
same semantics). This affects how the selectors are printed later,
which causes some css parsing tests to not match the references.
Fortunately the order is consistent between runs given the same
css, so we just have to switch around the order in some of the
.ref.css files.
2012-11-30 14:53:30 +01:00
Benjamin Otte
29c8420746
tests: Add CSS test for comment detection
...
Tests recent fix.
2012-11-28 21:11:48 +01:00
Benjamin Otte
6b33ee9c53
reftests: Add reftest for broken fixed height mode
...
https://bugzilla.gnome.org/show_bug.cgi?id=687816
2012-11-26 00:09:35 +01:00
Matthias Clasen
6333cd8e83
Update expected output for the entries a11y test
...
This change is due to entry icons now being accessible.
2012-11-20 06:28:59 -05:00
Benjamin Otte
8d28e2d8e9
reftests: Fix linear-gradient reftest (again)
...
Make it so that the repeating vs normal test only uses sharp color
cutoffs instead of real gradients. That removes rounding errors and
makes the test pass.
2012-11-20 12:21:03 +01:00
Matthias Clasen
d967500c92
Fix parser tests for color changes
2012-11-20 05:54:53 -05:00
Benjamin Otte
15570dd63d
reftests: Turns out, green changed color
...
What used to be "green" is now "lime"
2012-11-14 01:55:28 +01:00
Benjamin Otte
10c47c0226
reftests: Update named colors reftest
...
Make reftest conform with correct colors. Pango has been updated to
these colors in commit d2c319b9ded8cce864914d9f1fd704a7aff3112f
2012-11-14 01:55:28 +01:00
Mike Gorse
b7743430aa
Add accessibles for GtkEntry icons
...
Expose GtkEntry icons as child accessibles of a GtkEntry, and provide
actions to simulate clicking them. Also, refactor the a11y children test
slightly to add a test.
https://bugzilla.gnome.org/show_bug.cgi?id=686347
2012-11-12 09:21:27 -06:00
Benjamin Otte
872097603f
reftests: Add a test for border-width problems
2012-11-11 20:26:28 +01:00
Benjamin Otte
10c3a66e40
reftests: Add a test for all the color names
...
BIG NOTE: We fail on some of these to give the colors defined in the CSS
specs. This is not good, but I'm not sure how to best fix it.
For those cases, I've kept the correct color in the CSS file but added
the correct one next to it.
2012-11-10 14:25:17 +01:00
Alexander Larsson
c94002f8c0
Add "parent widget" button to test property editor
...
Without this its hard to access the properties of container
widgets.
https://bugzilla.gnome.org/show_bug.cgi?id=687842
2012-11-09 10:08:22 +01:00
Benjamin Otte
ffeef28dbc
reftests: Add test for recent fix
2012-11-08 23:34:30 +01:00
Benjamin Otte
1a213679bd
symboliccolor: Change the print output
...
Functions should not have a space before the opening parenthesis. So
change output like
alpha (@color, 0.5)
to
alpha(@color, 0.5)
and do the same for "shade" and "mix".
Tests have been updated accordingly.
2012-11-08 23:34:06 +01:00
Matthias Clasen
cff4718e91
Update a11y test results
...
These are expected changes, since a11y class name show up in the
dumps.
2012-11-07 20:21:50 -05:00
Benjamin Otte
5e59033eb3
tests: Include config.h
2012-11-06 21:29:58 +01:00
Benjamin Otte
959bfbb66e
reftests: Add a reftest for latest fix
2012-11-05 19:34:23 +01:00
Matthias Clasen
9ebeb4e68a
Bump GLib dependency to 2.35
...
And drop deprecated g_type_init() calls.
2012-11-04 13:01:38 -05:00
Benjamin Otte
8bdc2aa228
reftests: Add test for recent fix
...
This test checks the fix in a46368dede
2012-11-04 17:58:18 +01:00
Benjamin Otte
075667e927
reftests: Mark windows as popup
...
This makes the tests run faster and should always be done.
2012-11-04 17:58:06 +01:00
Benjamin Otte
1ef057f983
reftests: Add a test from evolution
...
This was used in a bug report.
https://bugzilla.gnome.org/show_bug.cgi?id=677609
2012-11-04 15:28:43 +01:00
Benjamin Otte
756ebea036
reftests: Add a test for all the recent sizegroup hackery
2012-11-04 15:28:43 +01:00
Benjamin Otte
aba0c5cc3b
label: Redo get_preferred_width/height()
...
This is important for size groups mostly, but also has some small fixes.
The label-sizing reftest as been updated accordingly.
2012-11-04 15:28:43 +01:00
Benjamin Otte
f55fe7e20b
label: Fix ellipsize and wrap being set
...
The label code assumed that Pango treats this as "wrap to as much space
as possible and then ellipsize all the lines", but for Pango, ellipsize
takes precedence over wrap. So do the same thing in GtkLabel.
Also updated is the reftest that checked this behavior.
2012-11-04 15:28:43 +01:00
Benjamin Otte
035e55d1ab
reftests: Improve reftest performance
...
Get rid of all the event boxes in this test. Event boxes need GDK
windows which cost a lot of performance when running the test and they
clip the label output.
Getting rid of the clipping also shows 2 bugs in this test that weren't
visible before. Those will be fixed in a followup patch.
2012-11-04 15:28:42 +01:00
Benjamin Otte
f48b30c13a
reftests: Make label-sizing tests use better CSS
...
ow that labels can have backgrounds, just use label backgrounds
2012-11-04 15:28:42 +01:00
Benjamin Otte
762e2d9322
reftests: Add reftest for fractional border sizes
2012-10-31 11:09:12 +01:00
Benjamin Otte
1e08fe8646
reftests: Fix linear-gradient reftest
...
... and add it to the Makefile
2012-10-31 11:09:12 +01:00
Benjamin Otte
a68e76e058
reftests: Add a reftest for recent commit
...
Check that a computed background-size of 0 is treated as 0.
2012-10-31 11:09:10 +01:00
Cosimo Cecchi
6b3416a2d7
reftests: fix the linear-gradient reftest
...
Don't use a repeating linear gradient, since it can't be easily
reftested against a non-repeating one for the reasons described in the
test header.
Instead, add a separate test for repeating gradients (against another
repeating gradient).
This makes the test pass, so it can be added to the Makefile now.
2012-10-16 13:12:00 -04:00
Benjamin Otte
861a031132
tests: Add test for latest bugfix
2012-10-12 17:45:46 +02:00
Cosimo Cecchi
4f0ac15343
Add a visual test for vertical inline toolbars
2012-10-10 13:43:17 -04:00
Cosimo Cecchi
ed3f5a5db4
tests: fix testtreecolumns not to segfault at startup
...
The class/object definitions have the wrong size, and we're not using
G_DEFINE_TYPE. This fixes the test segfaulting when opening it.
2012-09-27 16:54:40 -04:00
Matthias Clasen
a5ef604ce5
Update expected output of colorchooser a11y test
2012-09-24 18:39:17 -04:00
Matthias Clasen
f8fe097fc0
Update expected output of entries a11y test
2012-09-24 18:38:29 -04:00
Benjamin Otte
23cc1e9528
tests: Add a simple CSS test for cross-fade
2012-09-17 20:39:13 +02:00
Benjamin Otte
c5551e55ce
tests: Add test for last commit
2012-09-17 20:39:11 +02:00
Benjamin Otte
cdbc6f48bb
tests: Add parsing test for keyframe parsing
...
Ensure we order properly when printing
2012-09-17 20:39:11 +02:00
Benjamin Otte
1bbd3235db
tests: Add tests for keyframe parsing
...
Ensure we parse empty keyframes correctly
2012-09-17 20:39:10 +02:00
Bastien Nocera
634ebb593c
tests: Add accelerator example to testmenubutton
...
https://bugzilla.gnome.org/show_bug.cgi?id=680962
2012-09-12 18:14:50 +01:00
Bastien Nocera
4519fb53fc
tests: Add test for mnemonics in GtkMenuButton
...
To check https://bugzilla.gnome.org/show_bug.cgi?id=680962
2012-09-10 17:39:27 +01:00
Paolo Borelli
afd99d3579
Make spinbutton orientable
...
https://bugzilla.gnome.org/show_bug.cgi?id=683168
2012-09-03 11:45:51 -04:00
Ryan Lortie
0244dc8017
GtkMenuButton: rename _set_menu() to _set_popup()
...
It's too close to the release so we'll keep _set_menu() around, but
deprecate it, pointing to the new API. It will be removed (and the name
reused) before the 3.6.0 release.
https://bugzilla.gnome.org/show_bug.cgi?id=682235
2012-08-20 17:04:14 -04:00
Cosimo Cecchi
a28e1a22a6
visuals: add a visual test for suggested-action buttons
...
And selection-mode toolbars.
2012-08-20 19:25:08 +02:00
Mario Sanchez Prada
45ecba2ea0
Update accessibility unit tests to consider password fields.
...
Updated test/a11y/entries.ui to include a new GtkEntry with
'visibility' set to FALSE, and update expectations.
https://bugzilla.gnome.org/show_bug.cgi?id=681591
2012-08-10 18:09:06 +02:00
Matthias Clasen
5f28b7c114
Update expected dump output for color choooser
2012-08-07 01:17:51 -04:00
Cosimo Cecchi
855088be99
visuals: add a visual demo for GtkLevelBar
...
https://bugzilla.gnome.org/show_bug.cgi?id=677892
2012-07-16 01:01:38 -04:00
Matthias Clasen
7bfcb065df
Test folder filtering
...
Add a filter to testfilechooser that can demonstrate folder
filtering on common directories, such as Documents or Downloads.
2012-07-15 00:41:49 -04:00
Matthias Clasen
67d4b161ea
Revert "visuals: add a visual demo for GtkLevelBar"
...
This reverts commit ffdd7a5e18
.
Pushed by mistake.
2012-07-11 07:15:07 -04:00
Cosimo Cecchi
ffdd7a5e18
visuals: add a visual demo for GtkLevelBar
...
https://bugzilla.gnome.org/show_bug.cgi?id=677892
https://bugzilla.gnome.org/show_bug.cgi?id=679409
2012-07-11 06:55:17 -04:00
Matthias Clasen
88c861d062
a11y tests: update expected results
2012-06-20 22:44:32 -04:00
Bastien Nocera
9fef2dc0d1
gtkmenubutton: Add menu button widget
...
As used in Totem and gnome-contacts. The widget
takes either a GtkMenu or a GMenuModel to construct
its menu, and can be given a parent widget to use to
position the drop-down (as used in GtkMenuToolButton).
https://bugzilla.gnome.org/show_bug.cgi?id=668013
2012-06-15 17:24:42 +01:00
Benjamin Otte
644d16a5f7
reftests: Add a reftest for the empty iconview
2012-06-15 02:48:24 +02:00
Cosimo Cecchi
099dff1085
testscale: add a test for up/leftwards scales
2012-06-12 09:54:33 -04:00
Matthias Clasen
1617344222
testgtk: Work around some property editor problem
...
The property editor fails to show anything for GtkSettings, unless
we tell it to just show GTK_TYPE_SETTINGS. For now, do just that, then.
2012-06-02 08:41:08 -04:00
Matthias Clasen
2baba250b8
Revert "gtkmenubutton: Add menu button widget"
...
This reverts commit 9d35f7e512
.
2012-05-30 14:45:24 -04:00
Bastien Nocera
9d35f7e512
gtkmenubutton: Add menu button widget
...
As used in Totem and gnome-contacts. The widget
takes either a GtkMenu or a GMenuModel to construct
its menu, and can be given a parent widget to use to
position the drop-down (as used in GtkMenuToolButton).
https://bugzilla.gnome.org/show_bug.cgi?id=668013
2012-05-30 13:46:40 -04:00
Cosimo Cecchi
bce34d80d4
reftests: add a reftest for repeating/positioned background patterns
...
This currently fails.
https://bugzilla.gnome.org/show_bug.cgi?id=677109
2012-05-30 12:16:11 -04:00
Benjamin Otte
3a8cec5f17
reftests: Add a simple reftest for background-position
...
This is mostly to ensure that the background-positioning feature keeps
working and to demonstrate it.
https://bugzilla.gnome.org/show_bug.cgi?id=677109
2012-05-30 12:16:11 -04:00
Matthias Clasen
33d2af0036
fix the build
2012-05-25 23:14:02 -04:00
Cosimo Cecchi
78538fb647
visuals: add a testbed for OSD toolbars
2012-05-25 13:13:58 -04:00
Cosimo Cecchi
ba965b30d2
testscale: add a scale with a fill level to the test
2012-05-16 10:29:31 -04:00
Cosimo Cecchi
baf6f38f1a
tests: add background-shorthand parser test for multiple backgrounds
...
These CSS files test the background shorthand property when it's used
with multiple background layers.
2012-05-15 13:24:41 -04:00
Cosimo Cecchi
b58fa2ca32
tests: move background-shorthand test to background-shorthand-single
...
And update/fix it for the new shorthand parsing, since the old test did
a couple of things wrong:
- it erroneously flipped background-clip and background-origin when
testing
- it was missing default initial values for background-size and
background-position from the generated test output
2012-05-15 13:24:41 -04:00
Cosimo Cecchi
8aec81333d
tests: add trailing commas to background-shorthand.css test file
2012-05-15 13:24:40 -04:00
Cosimo Cecchi
0cd6710da0
reftests: add a reftest for multiple background layers
2012-05-15 13:24:40 -04:00
Cosimo Cecchi
1f2d70956c
visuals: add some visuals UI files for h/v linked button boxes
2012-05-11 11:47:00 -04:00
Benjamin Otte
e187cda5e9
tests: Remove unused include
...
Fixes build
2012-05-07 00:16:45 +02:00
Benjamin Otte
2da7a6d803
tests: Make testcellarea use an iconview
2012-05-07 00:12:26 +02:00
Carlos Garcia Campos
a18f018d87
cellrenderertext: Add placeholder-text property
...
It works similar to placeholder text in a GtkEntry, if the cell renderer
is editable and it's empty, the placeholder text is displayed.
https://bugzilla.gnome.org/show_bug.cgi?id=645514
2012-05-03 23:35:34 -04:00
Benjamin Otte
40915d9a34
reftests: Remove unneeded event boxes
...
The event boxes break when backgrounds are transparent.
Fixes border-image-repeat.ui reftest.
2012-05-02 02:00:11 +02:00
Benjamin Otte
d7992d0f4e
reftests: Make reset css include new CSS properties
2012-05-02 02:00:10 +02:00
Matthias Clasen
e9e557a353
Update reference output for css parser tests
...
Seems these were not kept up-to-date with the recent
CSS parser changes.
2012-04-30 20:45:46 -04:00
Paolo Borelli
9af5d89f26
Fix infobar reftest for label background changes
...
Fix the reftest after previous commit
https://bugzilla.gnome.org/show_bug.cgi?id=670743
2012-04-30 21:53:17 +02:00
Cosimo Cecchi
868b28b503
reftests: fix background-size reftest
...
We have to be careful and not set the background on the labels
themselves.
https://bugzilla.gnome.org/show_bug.cgi?id=670743
2012-04-30 13:13:46 -04:00
Matthias Clasen
d44edc1f7d
Revert "WIP: make GtkNotebook window-draggable"
...
This reverts commit b3a66c59ad
.
2012-04-28 02:06:37 -04:00
Diego Escalante Urrelo
b3a66c59ad
WIP: make GtkNotebook window-draggable
...
https://bugzilla.gnome.org/show_bug.cgi?id=672427
https://bugzilla.gnome.org/show_bug.cgi?id=674587
2012-04-28 02:01:16 -04:00
Benjamin Otte
14fb4984ce
tests: Add a parsing test for the transition property
2012-04-17 08:59:24 +02:00
Benjamin Otte
95a4b46f8b
reftests: Fix reftests for recent changes
2012-04-17 08:59:21 +02:00
Benjamin Otte
0048c8baf5
tests: Add a test ensuring currentColor is parsed everywhere
2012-04-17 08:59:20 +02:00
Benjamin Otte
04c5fdaca6
css: Remove old animation code
...
Deprecate public API where appropriate and make it no-ops.
Remove all calls to it.
Get rid of the 'transition' css property.
For now, this means spinners don't animate anymore.
2012-04-17 08:59:19 +02:00
Benjamin Otte
8f240275fd
tests: Add a parsing test for shadows
2012-04-17 08:59:17 +02:00
Benjamin Otte
3e601691d9
tests: Change expected errors to conform with output
...
This change isn't strictly correct, but I can't be bothered until we get
a tokenizer that can really differentiate between allowed values and
invalid syntax.
2012-04-17 08:59:12 +02:00
Benjamin Otte
d115441a57
reftests: Add a reftest for nth-child
...
Prime numbers are fun.
2012-04-17 08:59:08 +02:00
Benjamin Otte
cbe40f27e1
tests: Add a parsing test for nth-child()
...
Now that we support the an+b notation, make sure we really do.
Maybe my generating script went a bit overboard with the space
possibilities though...
2012-04-17 08:59:08 +02:00
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