Timm Bäder
ad8acdcebf
testsuite/cssprovider: Use actual existing style property
...
All the style properties in GtkTreeView are gone, so use one from
GtkScrollbar for now.
2017-01-08 13:10:43 +01:00
Timm Bäder
f00ccd3259
testsuite/builder: Use g_assert_no_error to check GError
...
So we get a proper error message.
2017-01-08 12:02:48 +01:00
Timm Bäder
3698f664b2
testsuite: Stop testing style properties
2017-01-07 17:19:30 +01:00
Benjamin Otte
dfd9150a82
build: Don't link against libgtk and libgdk
...
libgdk is statically linked these days, so if you link against it, all
of its symbols will exist twice: Once in libgtk.so and once in your
binary.
2016-11-20 11:19:32 +01:00
Matthias Clasen
b404ecf294
Drop deprecated gtk_dialog_get_action_area
...
Add an internal version for the few places where we still need it,
and drop it from everywhere else.
2016-11-19 21:23:17 -05:00
Benjamin Otte
cd8d84beb6
testsuite: Don't use draw signal, use a drawing area instead
2016-11-18 06:40:53 +01:00
Benjamin Otte
24d0baec38
API: gdk: Add gdk_window_new_popup()
...
... and use it.
2016-11-06 23:47:56 +01:00
Timm Bäder
3ae14630a3
tests: Don't add wigets to a GtkInvisible
...
It's not a GtkContainer.
2016-10-31 12:20:41 +01:00
Alexander Larsson
70935f0952
Drop support for offscreen GdkWindows
...
These complicate a lot of GdkWindow internals to implement features
that not a lot of apps use, and will be better achieved using gsk.
So, we just drop it all.
2016-10-25 09:54:37 +02:00
Rico Tzschichholz
502e63eddc
stylecontext: Remove deprecated API
2016-10-23 18:23:59 +02:00
Rico Tzschichholz
2273f5d28e
iconset: Remove stray references
2016-10-23 11:12:13 +02:00
Emmanuele Bassi
59af3a0c15
build: Enable subdir-objects
...
Newer versions of Automake warn about forward compatibility when the
build uses sources in sub-directories without the subdir-objects option.
Both GTK+ and GDK have an almost-but-not-quite non-recursive Automake
layout, with sources in sub-directories contributing to the build of a
top-level object.
In theory, just adding subdir-objects to AM_INIT_AUTOMAKE would be
enough, but the test suite references sources in a different top-level
in order to build tests that verify the implementation of private data
structures. This is not really allowed when using subdir-objects and out
of srcdir builds. In order to fix this case, we require some ad hoc
rules to create symbolic links in the appropriate build directory.
2016-10-19 15:26:24 +01:00
Timm Bäder
4384628afb
Remove GtkAction
2016-10-18 00:34:41 +02:00
Timm Bäder
ead36206a3
Remove GtkActionGroup
2016-10-18 00:34:41 +02:00
Timm Bäder
1bb3501ef7
Fix unittests
2016-10-18 00:34:41 +02:00
Timm Bäder
8245374f9c
tests/testylecontext: Don't double-free widgetpath
2016-10-18 00:34:41 +02:00
Timm Bäder
f7d22fec7b
Remove GtkRecentAction
2016-10-18 00:34:41 +02:00
Timm Bäder
d963ede668
Remove GtkUIManager
2016-10-18 00:34:41 +02:00
Timm Bäder
62b2949fa2
Remove GtkActivatable
2016-10-18 00:34:41 +02:00
Timm Bäder
41f5d3b14c
Remove GtkToggleAction
2016-10-18 00:34:40 +02:00
Timm Bäder
53ab8eb46d
Remove GtkRadioAction
2016-10-18 00:34:40 +02:00
Timm Bäder
dece018994
Remove GtkAlignment
2016-10-18 00:29:19 +02:00
Timm Bäder
3ad624d6c0
adjustment: Remove deprecated API
2016-10-18 00:29:19 +02:00
Timm Bäder
37c728be12
testsuite/gtk: Use a GtkMenuButton to test exposing objects
2016-10-18 00:29:19 +02:00
Timm Bäder
d844abe066
Remove GtkTable
2016-10-18 00:29:18 +02:00
Benjamin Otte
4322b69528
cssprovider: Return void, not TRUE
...
Parsing a css file always succeeds as CSS can recover from parsing
errors.
2016-10-17 17:41:03 +02:00
Benjamin Otte
dbeeaf7de6
cssprovider: Remove GError out argument from load functions
...
People should use the GtkCssProvider::parsing-error signal instead.
2016-10-17 16:52:05 +02:00
Benjamin Otte
1d4f23da8e
API: container: Remove GtkContainer::child property
2016-10-16 18:18:58 +02:00
Benjamin Otte
4df6ddad54
API: container: Remove gtk_container_set_border_width()
2016-10-16 18:18:58 +02:00
Benjamin Otte
1518fe0a8f
API: stylecontext: Remove state argument from getters
...
The argument must always be the current state.
2016-10-16 18:18:58 +02:00
Benjamin Otte
9b9b475f0a
API: stylecontext: Remove regions
2016-10-16 18:17:21 +02:00
Timm Bäder
9f930c08a6
ui: Don't unnecessarily set GtkEntry:invisible-char
2016-10-16 18:17:21 +02:00
Timm Bäder
ed184b3935
Remove GtkIconFactory
...
Move the icon size lookup API into gtkicontheme.c
2016-10-16 18:17:21 +02:00
Timm Bäder
9fd1a1bbe3
widget: Remove cursor-aspect-ratio/window-dragging style properties
...
And replaces its usages in GtkTextView/GtkStyleContext with a hard-coded
0.04 which was the default value for cursor-aspect-ratio. Also remove
the public gtk_draw_insertion_cursor which used draw_insertion_cursor
which in turn looked up cursor-aspect-ratio
2016-10-16 18:17:21 +02:00
Timm Bäder
96d9abded8
widget: Remove deprecated style properties
2016-10-16 18:17:21 +02:00
Timm Bäder
134556435d
Remove various deprecated GtkOrientable subclasses
2016-10-16 18:17:21 +02:00
Timm Bäder
d06d17b81e
Remove gtkcolorsel(dialog).{c,h}
2016-10-16 18:17:21 +02:00
Timm Bäder
9cfbaf4916
Remove gtkfontsel.{c,h}
2016-10-16 18:17:21 +02:00
Timm Bäder
2acc31b46a
Remove GtkHandleBox
2016-10-16 18:17:21 +02:00
Timm Bäder
155fa4664d
Remove GtkImageMenuItem
2016-10-16 18:17:21 +02:00
Timm Bäder
367f13a76f
Remove GtkArrow
2016-10-16 18:17:21 +02:00
Timm Bäder
ad155fb26c
Remove GtkStock API from GtkImage
2016-10-16 18:17:21 +02:00
Benjamin Otte
021fe010b6
API: Remove GtkPlug, GtkSocket and GtkWin32EmbedWidget
2016-10-16 18:17:21 +02:00
Timm Bäder
fb3d9022ad
Remove GtkHBox
2016-10-16 18:17:21 +02:00
Benjamin Otte
d2a8667f83
API: Remove GtkStatusIcon
2016-10-16 18:17:21 +02:00
Matthias Clasen
d053d5c58f
Rename Makefile references from 3.0 to 4.0
...
This is almost certainly incomplete.
Needs careful scrutiny
2016-10-07 10:34:50 -04:00
Matthias Clasen
4a035403d3
Fix the scrolledwindow test
...
These tests were written for the propagate-nat-size semantics,
so opt in to it.
2016-08-31 15:04:57 -04:00
Philip Withnall
76721e736e
gtkicontheme: Don’t emit warning about fallback theme when in unit tests
...
In order to eliminate g_test_expect_message() (which doesn’t work with
G_LOG_USE_STRUCTURED), make the warning about the fallback theme not
existing be conditional on the icon theme search path containing a
system path. Any application code which modifies the search path does so
through appends and prepends, so this should not affect whether the
warning is emitted in production.
https://bugzilla.gnome.org/show_bug.cgi?id=769485
2016-08-06 17:13:25 -04:00
Matthias Clasen
1306f780ab
tests: Avoid g_test_expect_message
...
Instead of using g_test_expect_message, just ignore the warning.
2016-08-06 17:13:25 -04:00
Matthias Clasen
80d329a3e7
Skip GtkShortcutLabel::accelerator in notify test
...
This property is not freely settable, since the string
gets parsed.
2016-08-02 23:59:34 -04:00
Matthias Clasen
5ab2b8f562
Make icontheme test work with structured logging
...
Since we've opted in to G_LOG_USE_STRUCTURED, this test
now needs to do its thing using a log writer function.
2016-08-02 23:23:43 -04:00
Matthias Clasen
d9c07c0a6a
Skip GdkDrawingContext in default value tests
...
GdkDrawingContext objects can't be freely constructed.
2016-08-02 22:32:25 -04:00
Matthias Clasen
1ebfe1db56
Skip GdkDrawingContext in some tests
...
GdkDrawingContext is not freely constructible, so we need
to skip it in the notify and finalize tests.
2016-06-20 15:27:20 -04:00
Philip Chimento
76bacfde6e
style cascade: Allow cascades with more ancestors
...
Previously a style cascade's parent could not have a parent itself. That
represented the two levels at which you could add a style provider: at
the screen level, with gtk_style_context_add_provider_for_screen(), and
at the style context level, with gtk_style_context_add_provider().
This commit changes no functionality, but this change will be necessary
for adding style providers in the future that apply to a subtree of the
widget tree. It relaxes the requirement that a style cascade's parent
must not have a parent, since in the future a style context may be
affected by any number of parent widgets' style contexts.
https://bugzilla.gnome.org/show_bug.cgi?id=751409
2016-06-19 19:47:05 -04:00
Tristan Van Berkom
d6187c9a02
scrolledwindow test: Check natural width for max content size
...
The maximum content size does not increase the minimum request
but only ensures that both minimum and natural requests do not
exceed the maximum setting.
2016-06-09 14:57:10 +09:00
Emmanuele Bassi
32885605c7
Fix build
...
Commit 023f406c96
has a typo that results
in this error:
../../../testsuite/gtk/notify.c: In function 'test_type':
../../../testsuite/gtk/notify.c:679:54: error: expected expression
before ')' token
(g_str_equal (pspec->name, "max-content-width") ||)
^
2016-06-08 14:20:02 +01:00
Matthias Clasen
023f406c96
test: Skip GtkScrolledWindow::max-content- properties
...
The allowed values for the max-content- properties depend
on the value of the min-content- properties, in a way that
our simple test is not prepared to deal with. Just skip
them for now.
2016-06-08 09:04:33 -04:00
Christian Dywan
b97c490b87
object test: Also test object type properties
...
Old patch found in bugzilla, it still applies and doesn't
cause the test to fail.
https://bugzilla.gnome.org/show_bug.cgi?id=556254
2016-06-05 22:15:00 -04:00
Georges Basile Stavracas Neto
3962b907bb
testsuite: add tests for scrolledwindow
...
This patch adds a set of tests for scrolled window
sizing, covering both min- and max-content width and
height.
https://bugzilla.gnome.org/show_bug.cgi?id=742281
2016-06-05 11:04:41 -03:00
Javier Jardón
101da71ee3
Use upstream gettext
...
https://bugzilla.gnome.org/show_bug.cgi?id=373745
2016-05-16 20:46:19 +01:00
Matthias Clasen
ef7ccab188
defaultvalue test: Skip GdkMonitor::geometry
...
We never return NULL for ::geometry and ::workarea. Just skip
these properties.
2016-05-02 12:42:13 -04:00
Matthias Clasen
db1a39a817
notify test: Skip GtkFontButton::font-name
...
This is not freely settable.
2016-04-25 23:09:19 -04:00
Paolo Borelli
c574ef0954
textiter: add unit test for forward_to_line_end
...
Surprisingly we had no unit test for this method
2016-04-22 08:54:25 +02:00
Matthias Clasen
4a9cf8527e
Add some more accelerator / modifier tests
2016-04-17 01:54:43 -04:00
Matthias Clasen
6f2d5a6290
Move autotestkeywords to testsuite
...
All the 'make check' and installed tests are now in testsuite/,
and tests/ is just a collection manual test programs.
2016-03-28 17:56:13 -04:00
Matthias Clasen
d69100547c
testsuite: Remove a test that isn't valid with csd
...
With csd, the allocation of the window will be larger than the
default size, since it includes borders and decorations. Just
remove this check.
2016-03-05 13:47:41 -05:00
Timm Bäder
8b70115d5e
revealer-size: Fix animation setting
...
Turn animations off before testing, for all test functions containing
"no_animations".
2016-03-03 21:05:37 +01:00
Timm Bäder
1c544e4237
Add GtkRevealer sizing tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=762996
2016-03-03 18:54:08 +01:00
Matthias Clasen
b1d691dbfd
testsuite: Fix up icontheme test
...
This test was relying on GtkIconTheme using g_print for
debug spew. Adapt it to use g_logv instead.
2016-02-28 21:40:23 -05:00
Matthias Clasen
9dad9a4b59
testsuite: Strip newlines from g_warning and g_error
...
g_logv adds one for us already.
2016-02-28 12:23:12 -05:00
Matthias Clasen
8ff40b5d14
Plug a small memory leak
2016-02-26 15:52:19 -05:00
Benjamin Otte
d3e8cf87aa
testsuite: Don't use deprecated APIs
2016-02-13 06:41:29 +01:00
Benjamin Otte
f9c2982ddc
testsuite: No warnings on type conversions please
...
long is 32bit on win64, so it's int cast to pointer of different size, and gcc doesn't like that.
2016-02-11 03:44:47 +01:00
Matthias Clasen
4d40bd4474
Fix stylecontext tests
...
This was broken by f7ec9c98ef
,
since type names are no longer used at all in CSS matching.
2016-02-06 09:59:48 +01:00
Matthias Clasen
586522d83c
Use TAP output for installed tests
2016-01-30 11:04:22 -05:00
Matthias Clasen
e84f1ae3bb
Update the list of required cursors
...
We're now using standard cursor names for DND, so check for these.
2016-01-08 18:11:07 -05:00
Matthias Clasen
12be432df7
Skip GdkX11DeviceManagerCore in default value tests
...
We already skip the XI2 implementation, and the core
one needs the same treatment.
2016-01-03 16:14:43 -05:00
Matthias Clasen
7a01741575
Skip GdkX11DeviceManagerCore in notify tests
...
We already skip the XI2 implementation, and the core
one needs to the same treatment.
2016-01-03 10:34:40 -05:00
Matthias Clasen
d83e9539c5
Fix stylecontext tests to work
...
Some of the tests don't work anymore because they test
features of saved style contexts that have changed, and some
now trigger deprecation warnings.
2016-01-03 01:25:07 -05:00
Matthias Clasen
6da57d61d5
Skip GdkX11DeviceManagerCore in finalize tets
...
We already skip the XI2 implementation, and the core
one needs to the same treatment.
2016-01-03 01:23:35 -05:00
Sébastien Wilmet
e2d1042b6b
Don't use gtk_text_iter_begins_tag() (deprecated)
...
Use gtk_text_iter_starts_tag() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=759092
2015-12-08 19:56:57 +01:00
Matthias Clasen
64431a17e3
Add a test for required cursors
...
We use these cursors in GTK+, so check for their existence.
2015-12-05 19:09:17 -05:00
Matthias Clasen
f19cadeaf3
testsuite: Fix notify tests
...
GtkStatusIcon tests don't work well under xwayland either, so just
skip them unconditionally.
GtkEntry now fails because the update of the im-module is no longer
deferred to an idle, and (gtk-im-simple) is not a valid module
name, so skip this property.
2015-12-04 13:22:26 -05:00
Sébastien Wilmet
1a8f3e2462
textiter: fix bug in case insensitive backward search
...
'win.lines' contains the same content as the GtkTextBuffer, so to find
@match_start, forward_chars_with_skipping() is called with
skip_decomp=FALSE (the last parameter). So far so good.
On the other hand, the content 'lines' (the needle split in lines) is
casefolded and normalized for a case insensitive search. So,
forward_chars_with_skipping(..., skip_decomp=TRUE) must be called only
for the portion of text containing the needle.
Since 'start_tmp' contains the location at the start of the match, we
can simply begin at that location to find the end of the match.
Unit tests are added.
https://bugzilla.gnome.org/show_bug.cgi?id=758698
2015-11-30 19:46:16 +01:00
Benjamin Otte
d75989a52b
cssstyle: Don't store custom css properties
...
This makes custom CSS properties no longer configurable. But it avoids
crashes when loading custom themes, so that's a good thing.
Testcase included.
https://bugzilla.redhat.com/show_bug.cgi?id=1281234
2015-11-20 21:22:15 +01:00
Matthias Clasen
9202bc244e
Fix make check
...
For some reason, GtkFileChooserNative is causing the defaultvalue
test to fail. I couldn't track this down quickly, so skip the
type for now.
2015-11-20 00:13:20 -05:00
Matthias Clasen
8f3ffe4d08
Work around g_test_dbus annoyance
...
Without iterating a mainloop for a bit, g_test_dbus_down() will
give us an error.
2015-11-20 00:13:20 -05:00
Benjamin Otte
0a4e88b79b
cssprovider: Have a section on import error
...
When loading a nonexisting CSS file using
gtk_css_provider_load_from_file() or gtk_css_provider_load_from_path()
we would emit the error using a NULL scanner. Don't do that, because
we'll have a NULL section in that case and error handlers don't like
that.
Testcase attached.
https://bugzilla.redhat.com/show_bug.cgi?id=1277959
2015-11-16 17:39:15 +01:00
Matthias Clasen
fe65c3ac4c
Add one more selector to CSS parsing tests
...
Add an E + F selector to the selector parsing tests.
It is a CSS selector that we support.
2015-11-14 19:04:42 -05:00
Matthias Clasen
2d054fa6ae
Always pass the right state in style context getters
...
Otherwise, we are causing warnings that break make check.
2015-11-14 19:03:57 -05:00
Matthias Clasen
dedab98bbb
testsuite: Skip GtkFileChooserNative for notification tests
...
Like all the other GtkFileChooser implementations, this one
emits some unneeded notifications.
2015-11-14 19:03:10 -05:00
Sébastien Wilmet
1685da6f69
textbuffer: nicer get_iter functions, without return values
...
Avoid crashes when passing an invalid location to a
gtk_text_buffer_get_iter_at_*() function.
A first attempt added boolean return values to know if @iter has been set to
the exact location, but it breaks Python and JS bindings because the out
parameter is already a return value in those languages.
Unit tests are added.
https://bugzilla.gnome.org/show_bug.cgi?id=735341
2015-11-12 17:50:39 +01:00
Matthias Clasen
fde91c3bec
Revert "textbuffer: nicer get_iter functions"
...
This reverts commit a9a1c00cc9
.
Unfortunately, adding the boolean return broke both the python
and javascript bindings, since they now return a tuple consisting
of the boolean and the out argument.
2015-11-12 09:58:28 -05:00
Benjamin Otte
61db7da2ef
testsuite: Remove a bunch of broken tests
...
These tests have either been commented out for way too long or use APIs
that we don't want to support.
2015-11-04 05:06:23 +01:00
Benjamin Otte
a58d8bdcbc
cssprovider: Have a section when parsing style properties
...
Signal handlers expect a section to be present, so provide them with
one.
New testcase included.
https://bugzilla.gnome.org/show_bug.cgi?id=757240
2015-10-28 19:37:27 +01:00
Matthias Clasen
5ee39befb8
Fix make check
...
Don't try setting GtkShortcutsShortcut::accelerator to a
random value, it only accepts strings that it can parse.
2015-10-27 13:27:43 -04:00
Matthias Clasen
e9aa33527f
Don't use g_slist_next in the testsuite
...
We generally use ->next directly.
2015-10-20 06:14:57 -04:00
Matthias Clasen
65aa367029
Add some more builder parser tests
...
These tests contain non-canonical and non-existing property names.
2015-10-20 06:14:57 -04:00
Sébastien Wilmet
a9a1c00cc9
textbuffer: nicer get_iter functions
...
Avoid crashes when passing an invalid location to a
gtk_text_buffer_get_iter_at_*() function.
A boolean is returned to know if @iter has been set to the exact
location.
Unit tests are added.
https://bugzilla.gnome.org/show_bug.cgi?id=735341
2015-10-16 08:43:27 +02:00
Matthias Clasen
40190c295c
Add a test for gtk_style_context_list_classes
...
This test failed before the previous commit.
2015-10-03 17:38:36 -04:00
Matthias Clasen
cfcd28041c
Fix make check
2015-10-03 00:01:04 -04:00
Christian Hergert
5bb9c1891c
build: only compile plug/socket when available
...
Plug and Socket require X11 windowing. Often times this is compiled
on systems with both wayland and x11, but not always. Quartz is an
example where it is usually not compiled.
2015-09-22 12:46:02 +02:00
Benjamin Otte
c8c666c87c
bitmask: Fix broken invert_range() implementation
...
The speed-up in 7da1f8a1ce
was wrong in
certain conditions, even though it didn't trigger the existing
testsuite.
New testcase /bitmask/invert_range_hardcoded included.
2015-09-07 14:32:09 +02:00
Matthias Clasen
42864bc338
Avoid some duplicate test names
...
GLib considers these an bug now.
2015-09-02 07:15:57 -04:00
Matthias Clasen
3d7d2f245f
Work towards succeeding make check under Wayland
...
Skip tests that don't work under Wayland, such as tests for GtkPlug
and GtkSocket.
2015-08-28 13:08:23 -04:00
Cosimo Cecchi
0093b156d7
testsuite: add a test for non-square symbolic icons
...
To verify the previous fix.
https://bugzilla.gnome.org/show_bug.cgi?id=750605
2015-06-12 08:55:23 -07:00
Benjamin Otte
d921a4fe84
testsuite: Add deprecation guards
2015-05-28 16:53:53 +02:00
Cosimo Cecchi
cfbd862aae
tests: wait for draw before fetching tree view style
...
On some slower machines (e.g. an ARM OBS builder), this test is failing
with a race condition where we're trying to fetch the style before it's
applied.
https://bugzilla.gnome.org/show_bug.cgi?id=749593
2015-05-24 12:08:33 -07:00
Matthias Clasen
dedfcd7d58
Quiet the bitmask test
...
Don't spew so many 0s and 1s.
2015-05-12 07:40:47 -04:00
Sjoerd Simons
9a7e69a990
notify test: Don't test object relying on dbus connections
...
Don't test types that rely on a pre-existing dbus session bus.
https://bugzilla.gnome.org/show_bug.cgi?id=749009
2015-05-07 22:37:55 -04:00
Matthias Clasen
f06cd304bd
Adjust tests
2015-04-30 06:19:10 -04:00
Matthias Clasen
5271106250
Test the new error conditions
2015-04-29 15:20:51 -04:00
Matthias Clasen
90352f1979
GtkInfoBar: Add a test for 'invalid ID'
2015-04-27 23:09:35 -04:00
Matthias Clasen
cd19f3bf0b
GtkDialog: Add a test for 'invalid ID'
2015-04-27 23:09:35 -04:00
Matthias Clasen
86ca248c99
GtkContainer: Add a test for 'invalid ID'
...
...and add all the container tests to Makefile.am
2015-04-27 23:09:30 -04:00
Matthias Clasen
7969204e7a
Adjust affected tests
2015-04-27 19:21:45 -04:00
Matthias Clasen
a84c15fef0
Fix the build
...
There was one too many dialog test cases in the Makefile.
https://bugzilla.gnome.org/show_bug.cgi?id=748509
2015-04-27 06:15:28 -04:00
Matthias Clasen
3c23a2e32b
Adjust builder tests
...
Some errors are now returned as markup errors instead of builder
errors. Adjust the tests for this.
2015-04-27 01:15:25 -04:00
Matthias Clasen
d955c6e7e5
Adjust existing tests
2015-04-27 01:15:24 -04:00
Matthias Clasen
8ae4a82ae4
Add tests for the infobar builder parser
2015-04-27 01:15:23 -04:00
Matthias Clasen
cff5e0d15b
Add tests for the GtkFileFilter builder parser
2015-04-27 01:15:23 -04:00
Matthias Clasen
95ea81d6d1
Add tests for the GtkDialog builder parser
2015-04-27 01:15:23 -04:00
Matthias Clasen
f11fedb719
Add tests for GtkLevelBar builder parser
2015-04-27 01:15:23 -04:00
Matthias Clasen
66ce0b6509
Add tests for GtkContainer builder parser
2015-04-27 01:15:22 -04:00
Matthias Clasen
e973d49a11
Add tests for the GtkScale builder parser
...
These tests check various error conditions in GtkScale
custom tags.
2015-04-27 01:15:22 -04:00
Matthias Clasen
d416f352ad
Add tests for the GtkCellLayout builder parser
...
These tests check various error conditions in GtkCellLayout
custom tags.
2015-04-27 01:15:22 -04:00
Matthias Clasen
2c807335c4
Add tests for the GtkLabel builder parser
...
These tests check various error conditions in GtkLabel
custom tags.
2015-04-27 01:15:22 -04:00
Benjamin Otte
ec57c6c10b
csspathnode: Handle context going away
...
Sometimes path nodes can survive longer than the style context that
created them. Don't crash in those cases.
Fixes startup of mutter.
Testcase included.
https://bugzilla.gnome.org/show_bug.cgi?id=746407
2015-03-18 18:24:45 +01:00
Benjamin Otte
6c00eba7fb
testsuite: Add another random stylecontext test
2015-03-18 15:23:31 +01:00
Matthias Clasen
98730f71f9
testsuite: Set some environment variables
...
These were set manually in some tests, but not consistently.
2015-03-13 17:51:42 -04:00
Matthias Clasen
b756fd42a0
testsuite: Drop test bus
...
It seems to be buggy in ways that make the test fail
with a critical when the test bus is brought down.
At the same time, drop manual settings of environment
variables that we can set globally.
2015-03-13 17:51:32 -04:00
Philip Withnall
52858f709c
gtktreeselection: Fix an abort on selecting an invalid range
...
gtk_tree_selection_real_modify_range() has a g_return_if_fail() if the
start or end paths passed to it do not correspond to real tree nodes.
However, GtkTreePaths inherently do not have to be valid, so it should
be acceptable to call gtk_tree_selection_select_range() with
non-existent paths. Replace the g_return_if_fail() by a silent return,
and add a unit test.
https://bugzilla.gnome.org/show_bug.cgi?id=712760
2015-03-11 11:24:29 +00:00
Matthias Clasen
ec567e5fad
Add a test for builder-constructed file filters
2015-03-08 09:12:21 -04:00
Benjamin Otte
0ab48fcc42
css: Fix _gtk_bitmask_subtract()
...
We were doing the wrong thing *and* writing uninitialized memory while
doing so. BAD.
Also added tests exposing these.
https://bugzilla.redhat.com/show_bug.cgi?id=1185585
2015-02-25 01:55:28 +01:00
Benjamin Otte
edec64cda3
stylecontext: Don't crah when invalidate() is called on saved context
...
We need to invalidate the root node, not the current one.
Fixes crashes on startup of eclipse.
Testcase included.
https://bugzilla.redhat.com/show_bug.cgi?id=1185828
2015-02-04 21:20:29 +01:00
Matthias Clasen
0438df6d14
Quiet a rule
2014-11-30 19:58:34 -05:00
Ray Strode
3a5d15358e
testsuite: add hide-titlebar-when-maximized test for GtkWindow
...
This commit adds a test that checks whether or not
hide-titlebar-when-maximized can be set before the window is
realized.
https://bugzilla.gnome.org/show_bug.cgi?id=740287
2014-11-24 12:52:25 -05:00
Matthias Clasen
a09ff50a1d
notify test: Exclude a few new properties
...
The button properties don't make sense on GtkModelButton (indicating
that GtkModelButton should really not be a GtkButton subclass).
2014-11-23 18:30:13 -05:00
Matthias Clasen
824fa0314d
Add some more builder tests
2014-11-03 19:07:18 -05:00
Matthias Clasen
e6e511eb46
GtkListBox: Fix a bug in unselection
...
Ensure that gtk_list_box_get_selected_row returns NULL after
gtk_list_box_unselect_all. Add a testcase that detects this
problem.
2014-10-31 22:34:09 -04:00
Emmanuele Bassi
7b6a6c9421
tests/gtk: Add GdkX11GLContext to the whitelist
...
We cannot create them directly anyway.
2014-10-22 21:20:52 +01:00
Matthias Clasen
0f309c9dcf
Skip GdkX11GLContext in some object tests
...
Since it can't be constructed without specifying a GdkWindow,
which we don't have here.
2014-10-21 23:48:12 -04:00
Matthias Clasen
38b315d0be
Add a a drop-in test for the GtkBuilder parser
2014-10-18 22:18:59 -04:00
Matthias Clasen
80226ca926
GtkBuilder: Undo the type name heuristic changes
...
These turned out to break existing ui files, concretely
GWeatherLocationEntry was no longer guessed correctly.
Update the testcases to reflect this, and add a testcase
for GWeather.
2014-10-03 09:29:45 -04:00
Marek Kasik
8b5d30d439
Remove redundant checks for NULL
...
Remove checks for NULL before g_free() and g_clear_object().
Merge check for NULL, freeing of pointer and its setting
to NULL by g_clear_pointer().
https://bugzilla.gnome.org/show_bug.cgi?id=733157
2014-10-02 19:06:03 +02:00
Matthias Clasen
4a38330a90
Add a test for GtkBuilder typename-mangling
...
This test makes sure that out heuristic for finding
get_type functions works as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=635258
2014-09-26 23:31:11 -04:00
Matthias Clasen
7ead9d45de
check-icon-names: Check for legacy names again
...
Keep checking the legacy icon names as long as we support them
(this caught gtk-undelete not working quite as expected).
2014-09-21 23:14:56 -04:00
Matthias Clasen
b5a3900588
check-icon-theme: Print the name of the icon-theme
2014-09-21 16:34:33 -04:00
Matthias Clasen
df8a688656
icon-theme: Test inheritance vs. generic fallback
...
Add a few tests that check the behavior of icon theme inheritance
vs generic fallback vs symbolic icons.
2014-09-21 16:34:27 -04:00
Matthias Clasen
10703a0275
notification tests: Skip GtkEntryCompletion::text-column
...
This one is special.
2014-09-03 22:46:38 -04:00