Benjamin Otte
1037398041
gtk/tests: Fix for -Wmissing-declarations
...
I'm adding a bunch of fixes for gcc complaining about
-Wmissing-declarations after finding a bunch of cases today where I
had forgotten to make functions static in the CSS code.
This patch fixes the tests in gtk/tests.
After this last patch, the gtk/ subdir should now compile without
warnings when this flag is enabled.
2012-10-02 19:32:53 +02:00
Benjamin Otte
eddac4911f
tests: Remove gdk-pixbuf hacks
...
The code used to check for uninstalled gdk-pixbuf. Since gdk-pixbuf is
an external library these days, those checks aren't necessary anymore.
2012-10-02 19:32:37 +02:00
Rui Matos
96c19108fc
tests/filtermodel: Add test for bug 679910
2012-07-17 10:49:00 +02:00
Cosimo Cecchi
5ee591225a
tests: add a test for GtkLevelBar GtkBuildable implementation
...
https://bugzilla.gnome.org/show_bug.cgi?id=677892
2012-07-16 01:01:38 -04:00
Cosimo Cecchi
61001bc501
tests: add an unit test for the previous commits
...
https://bugzilla.gnome.org/show_bug.cgi?id=677649
2012-06-07 16:47:11 -04:00
Matthias Clasen
90b6725ffd
Fix the infobar builder test
2012-06-03 13:55:49 -04:00
Juan Pablo Ugarte
a893e3ce1d
Chain up custom_tag_start() propertly.
...
Fixes bug #675899 "Infobar not loadable by GTKBuilder (using python gi introspection)"
2012-05-18 18:09:36 -03:00
Benjamin Otte
de9ffc99c2
tests: Ifdef out unused code
...
The test using those functions was disabled in
b310ba29d0
2012-05-01 03:13:01 +02:00
Benjamin Otte
23907e1d53
build: Remove now-unused GTK_DISABLE_DEPRECATED undefs
2012-05-01 03:13:01 +02:00
Matthias Clasen
b310ba29d0
Disable configuration-dependent keymap tests for now
...
These need to be made independent of the xkb configuration somehow.
As things are now, they will either fail when run on a naked X
server in make check, or fail when run in my session.
2012-04-30 07:32:33 -04:00
Carlos Garnacho
676441398a
treemodelsort: fix iter_previous so it can go back to the first item
...
It was getting the previous element, then checking whether it was the
first one, that has to be inverted so it doesn't stop on the second
item.
https://bugzilla.gnome.org/show_bug.cgi?id=674587
2012-04-28 02:01:16 -04:00
Matthias Clasen
9107074795
Beginning of keyhash tests
...
Not very interesting yet
2012-04-22 13:00:46 -04:00
Benjamin Otte
c80436ac35
tests: Remove unused variables
2012-03-20 02:07:21 +01:00
Matthias Clasen
c0431a7238
builder: Remove a questionable test
...
It doesn't really make sense to check properties of a cell renderer,
since those only get set when needed to render or size-allocate
a cell.
2012-03-18 22:56:44 -04:00
Benjamin Otte
6df7562570
tests: Remove deleted rows from cache
...
Otherwise the GNode pointer address that we use for indexing might get
reused for a new node and then we don't start out with a pristine
refcount.
2012-03-19 02:26:16 +01:00
Benjamin Otte
27eb83a410
bitmask: Split bitmask code into two
...
This does nothing but turn all GtkBitmask functions into static inline
functions that call the gtk_allocated_bitmask_*() equivalent.
The implementation of the static functions has also been put into a
private header, to not scare people who want to see how things are
implemented.
2012-03-01 15:10:36 +01:00
Benjamin Otte
64425a28de
bitmask: Make setters return a new value
...
(Actually, it's not a real 'new' value yet, but will be soon.
This is the first step to make bitmasks immutable.
2012-03-01 15:10:36 +01:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Benjamin Otte
33864064f4
tests: Remove untrue assertion
...
Even if something is not at the top, things might still not be scrolled.
For example in the case where things are exactly at the center.
2012-02-06 21:53:36 +01:00
Benjamin Otte
75eddfffbb
tests: Don't test something we can't test
...
When using GtkTreeStore, don't compute row positions assuming
everything's a list store, which is how get_row_start_for_index() works.
So instead, do a laxer check and don't insist on proper alignment.
2012-02-06 21:53:35 +01:00
Benjamin Otte
6a381b0c1d
tests: Remove unused argument from treeview-scrolling test
2012-02-06 21:53:35 +01:00
Benjamin Otte
33961154b6
tests: Fix height checks in treeview scrolling test
...
If things get centered in the scrolling area depens on the height of the
row, too.
2012-02-06 20:43:05 +01:00
Benjamin Otte
c2a6dcc73c
tests: Fix assertion emission
...
We want to assert() when doing the actual check, not do some
g_assert (testing_failed());
2012-02-06 20:43:05 +01:00
Matthias Clasen
f663d4c82e
Fix menu xml syntax in tests
2012-01-30 22:14:05 -05:00
Matthias Clasen
585a6652d5
Use G_SOURCE_CONTINUE/REMOVE
...
Now that GLib provides these macros, we should use them
to make the code more readable.
2012-01-30 19:12:27 -05:00
Benjamin Otte
eddd36d1d9
tests: Add tests for GtkBitmask
2012-01-09 18:37:49 +01:00
Matthias Clasen
a991bb9927
GtkBuilder: pick up named submenus
...
When parsing GMenu xml, use the facility for pick up named submenus.
Note that <section id='foo'>...</section> is _not_ a named submenu.
It is a named item with an unnamed submenu :-(
2011-12-19 12:51:12 -05:00
Matthias Clasen
601b3fca60
Drop an unused variable
2011-12-19 12:45:51 -05:00
Matthias Clasen
1ddaf01aed
Quick-and-dirty GtkBuilder integration
...
This makes GtkBuilder accept a GMenuMarkup tree at the toplevel
(ie with <menu id='foo'> being a child of <interface>) and the resulting
GMenu object can be obtained via gtk_builder_get_object (builder, "foo").
2011-12-19 12:45:50 -05:00
Rui Matos
4a113394da
tests: Add a test for latest commit
...
https://bugzilla.gnome.org/show_bug.cgi?id=666392
2011-12-17 11:59:08 +00:00
Benjamin Otte
e104219ab1
tests: Relax a refcount comparison check
...
We now test for real_refcount >= expected_refcount, because various
parts of the code (a11y, selection, cursor, ...) can and do add
references.
2011-12-16 13:39:43 +01:00
Benjamin Otte
953b4aedf1
tests: Add a test for latest commit
2011-12-16 04:53:05 +01:00
Benjamin Otte
3166457802
tests: Add test for _gtk_rbtree_reorder()
2011-11-22 23:29:04 +01:00
Benjamin Otte
c1124df1f2
tests: Speed up rbtree test
...
We don't need so many tree consistency checks while creating when the
test is about something else.
2011-11-22 23:29:04 +01:00
Benjamin Otte
d8b6414567
rbtree: Remove needless tests
...
if the checks are run on the nil node, they will get the second test the
way we expect it anyway, so it's unnecessary.
2011-11-22 03:42:31 +01:00
Benjamin Otte
37786804e1
rbtree: Remove the nil member
2011-11-22 03:32:56 +01:00
Benjamin Otte
a4630d0e7b
rbtree: Introduce _gtk_rbtree_is_nil()
...
Makes for more readable code than "== tree->nil" and allows removing the
nil member later.
2011-11-22 03:32:56 +01:00
Benjamin Otte
e2f2289d72
tests: Add a test for the rbtree code.
2011-11-21 22:33:46 +01:00
Matthias Clasen
bcc98cf14c
Remove leftover debug spew
2011-11-19 18:13:42 -05:00
Bastien Nocera
ab27fa9bba
tests: Add tests for keypad keys parsing
...
See https://bugzilla.gnome.org/show_bug.cgi?id=606727
2011-11-16 18:49:54 +00:00
Bastien Nocera
ef5476f16a
tests: Check "without keycode" code path too
...
And see whether the output of gtk_accelerator_parse()
matches that of gtk_accelerator_parse_with_keycode()
2011-11-16 18:05:41 +00:00
Bastien Nocera
c1bdbe610a
Revert "tests: Disable accel test until fixed"
...
The test now works correctly.
This reverts commit ba397a3431
.
2011-11-16 15:02:06 +00:00
Bastien Nocera
c30d313afc
gtk: Fix parsing of accelerators with keycodes
...
GDK_KEY_VoidSymbol is not the same as keycode 0. This fixes
keycodes such as "0xb3" being parsed as "VoidSymbol" keysyms.
https://bugzilla.gnome.org/show_bug.cgi?id=663761
2011-11-10 14:33:28 +00:00
Bastien Nocera
ba397a3431
tests: Disable accel test until fixed
2011-11-04 16:40:23 +00:00
Bastien Nocera
780a92b559
gtk: Add test program for keycode parsing
...
https://bugzilla.gnome.org/show_bug.cgi?id=662755
2011-11-04 16:40:22 +00:00
Matthias Clasen
feece3c0bb
Move gtkstyle and gtkrc to deprecated/
...
This required a somewhat more substantial include reshuffling.
Some typedefs have been moved to gtkiconfactory.h and to
gtksettings.h.
2011-11-02 01:15:21 -04:00
Benjamin Otte
e7e3413e2e
tests: Remove unused variables
2011-11-02 02:31:54 +01:00
Matthias Clasen
0f17a846a0
Update grid tests to match
...
The previous fix changed some test results here.
2011-10-25 23:21:13 -04:00
Javier Jardón
0853ce3077
Use G_VALUE_INIT
...
Instead of an explicit { 0, } when declaring the variable.
2011-10-15 16:45:16 +01:00
Kristian Rietveld
0e3a4b73ca
Fix commit 61d6c73f18
...
Where the commit suggested "somebody should review it [the test]",
it would have been useful to test this particular commit instead...
2011-10-03 22:59:40 +02:00