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
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
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
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
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
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
586522d83c
Use TAP output for installed tests
2016-01-30 11:04:22 -05: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
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
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
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
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
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
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
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
0438df6d14
Quiet a rule
2014-11-30 19:58:34 -05:00
Matthias Clasen
824fa0314d
Add some more builder tests
2014-11-03 19:07:18 -05:00
Matthias Clasen
38b315d0be
Add a a drop-in test for the GtkBuilder parser
2014-10-18 22:18:59 -04: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
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
ec2bc3face
Add some spinbutton tests
...
These tests check some of the changes from the previous commits.
2014-08-14 00:04:10 -04:00
Matthias Clasen
52ab9a36fa
Add a test for window focus handling
...
This is a small test that checks that gtk_window_set/get_focus
behave as expected, regardless of the window being shown or hidden.
2014-08-02 11:38:44 +02:00
Matthias Clasen
c3bfaaa5d1
Add some tests for GtkAdjustment
2014-07-22 18:32:17 -04:00
Matthias Clasen
c4e533ecd6
Fight deprecation warnings in test
...
This time, in installed tests.
2014-06-28 00:41:26 -04:00
Matthias Clasen
b9bd7159c0
Disable deprecation warnings in tests
...
We want to test deprecated properties, so failing the tests with
warnings is not productive.
2014-06-25 16:29:08 -04:00
Matthias Clasen
640f9d110e
Install the new icontheme test files
2014-06-19 13:52:10 -04:00
Kalev Lember
71ac15ec2f
Fix another typo
2014-06-15 11:24:39 +02:00
Matthias Clasen
d58a3439e4
Fix a typo
2014-06-15 04:15:32 -04:00
Matthias Clasen
0cb7031d1d
Install all icons for installed tests
...
Otherwise the icontheme test fails in continuous.
2014-06-14 22:52:57 -04:00
Benjamin Otte
45a64cd7d4
testsuite: Add a test for symbolic icons in specific sizes
...
Check that loading symbolics works, even if the symbolic is only
available in a fixed size.
2014-06-12 12:34:09 +02:00
Matthias Clasen
f870a50f1f
Add a test for property notification
...
This tests just a few basic things for now. Mainly, that we don't
emit redundant notifications for enum, flags, int and boolean
properties. It also checks that we do emit the expected notifications
when the value actually changes. This is checked for string, double
and float properties as well.
There is a large number of exceptions in the test, and a lot more
checks that could be done. One class of exceptions is all the places
where we have -set booleans to go along with another property. We
should have a dedicated test for these pairs. Another class of
exceptions is where naked objects created by g_object_new () just
don't have the full functionality - e.g. a tree selection without
a tree view does not work very well. We set up the instance object
better for these situations.
2014-06-09 13:31:14 -04:00
Matthias Clasen
98cf67ddba
testsuite: put installed tests in the right place
...
Follow the prevailing practice and put the installed tests
into $libdir/installed-tests/$PACKAGE instead of
$pkglibdir/installed-tests.
2014-05-31 00:16:07 -04:00
Matthias Clasen
2388c69f0c
Add some gesture tests
...
This test starts to assemble tests related to event propagation,
interaction with traditional event signal handlers, claiming of
events, etc.
2014-05-27 19:15:40 -04:00
Benjamin Otte
74b6f5fba8
testsuite: Add a test for icon names
...
This test just checks that all the icon names that GTK uses are present
in the default icon theme.
As icon names are not checked programmatically and we do not want to run
into missing-icon icons in the code, this test seems necessary.
For now, it's just a stub that tests stock icons.
2014-05-23 17:12:32 +02:00
Matthias Clasen
f750f70c7d
tests: Make icontheme test installable
...
To make the icontheme test run successfully when installed,
we need to use the correct test-framework-provided location,
and we need to install the test theme without stripping its
subdirectory structure.
2014-05-21 13:46:49 -04:00
Benjamin Otte
0f788ab1be
testsuite: Add rtl icontheme tests
2014-05-14 04:55:11 +02:00
Benjamin Otte
5f794773aa
testsuite: Add more icontheme tests
...
Check that the lookup order works properly when forcing either symbolic
or regular icons.
2014-05-14 04:28:36 +02:00
Benjamin Otte
5ba4a085e2
testsuite: Add a basic icontheme test
...
Most of the work here is creating the infrastructure to have a custom
icon theme to add icons to and run tests against.
2014-05-14 04:28:35 +02:00
Benjamin Otte
750eaf53d6
testsuite: Add a test for a Firefox issue
...
When creating a style context, the CSS for the theme might not be
loaded. If it is, this test will succeed.
https://bugzilla.redhat.com/show_bug.cgi?id=1064922
https://bugzilla.mozilla.org/show_bug.cgi?id=972382
2014-02-20 02:10:07 +01:00