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
Kristian Rietveld
e8323e2abc
Add two more unit tests for bug 659022
...
Both pointing out problems in gtk_tree_model_filter_row_deleted().
2011-10-03 22:59:40 +02:00
Kristian Rietveld
6fdf882eb4
Add unit test for part 1 of bug 659022
...
This tests a case where gtk_tree_model_filter_row_changed() is run
for a node with visible_siter != NULL, however its parent has
visible_iter == NULL. For this case, no valid paths can be generated
as the node cannot be accessed (because the parent is invisible).
2011-10-03 22:59:40 +02:00
Benjamin Otte
61d6c73f18
tests: Fix a bunch of set-but-unused warnings in the filtermodel test
...
The whole test doesn't seem to unref any memoery, somebody should review
it.
2011-09-30 00:26:22 +02:00
Kristian Rietveld
25a514da8a
Remove left-over calls to dump function
2011-09-17 06:09:35 +02:00
Kristian Rietveld
3fc80381fd
Add unit test for Bug 657353
...
This is to verify that Bug 657353 has been fixed.
2011-09-11 20:19:56 +02:00
Kristian Rietveld
9c85042de6
Increase code coverage of first reference transfer code paths
2011-09-11 16:51:23 +02:00
Kristian Rietveld
0ab9766253
Add unit test for bug 658696
2011-09-11 12:13:54 +02:00
Kristian Rietveld
449c4bc362
Unit test a corner case of gtk_tree_model_filter_rows_reordered()
2011-09-11 12:13:54 +02:00
Kristian Rietveld
b53a66b7e2
Add unit tests to check hierarchies of deleted nodes are unreffed properly
2011-09-07 22:25:29 +02:00
Kristian Rietveld
d116261e1f
Update filter model ref count tests to reflect changes in rules
2011-09-07 22:25:29 +02:00
Kristian Rietveld
0bedb51b33
Add unit test for ref tranfer in rows-reordered with filtered rows
2011-09-07 22:25:29 +02:00
Matthias Clasen
ef4690d511
GtkGrid: make attaching more flexible
...
Allow to attach children at either end of row/column 0.
Proposed by Alex Larsson.
https://bugzilla.gnome.org/show_bug.cgi?id=657793
2011-09-02 20:07:19 -04:00
Matthias Clasen
9379a48e22
Add headers to treemodel test sources
...
...otherwise they don't make it into the release tarballs.
https://bugzilla.gnome.org/show_bug.cgi?id=657653
2011-08-29 20:34:46 -04:00
Matthias Clasen
925ed7c70f
Don't unref floating menuitems
...
With recent fixes, GTK+ no longer sinks menu items automatically,
so we have to do it explicitly here.
2011-08-29 11:57:39 -04:00
Matthias Clasen
4b394fc847
Fix the build
2011-08-27 17:22:37 -04:00
Kristian Rietveld
b50375abf4
Add forgotten calls to signal_monitor_assert_is_empty()
2011-08-22 21:30:35 +02:00
Kristian Rietveld
d63015e627
Fix some memory leaks in treemodel unit tests
2011-08-22 21:30:35 +02:00
Kristian Rietveld
36f712f272
Add some notes on how filter model testing can be made (even) more thorough
2011-08-22 21:30:34 +02:00
Kristian Rietveld
04885f1c29
Update filtermodel ref count unit tests to new cache depth
2011-08-22 21:30:34 +02:00
Kristian Rietveld
ad0f54b87b
Add more unit tests for GtkTreeModelSort
...
To test ref counting during rows-reordered and the new_order arrays supplied
with rows-reordered signals.
2011-08-22 21:30:34 +02:00
Kristian Rietveld
9ef07cb0f3
Move SignalMonitor to treemodel.[ch] so it can be used by other tests
2011-08-22 21:30:34 +02:00
Kristian Rietveld
21d7eca12a
Remove left-over dump call
2011-08-22 21:30:33 +02:00
Kristian Rietveld
30340e521e
Test GtkTreeModelFilter's reference transfers
2011-08-22 21:30:33 +02:00
Kristian Rietveld
e321034074
Unit test GtkTreeModelFilter's rows-reordered emissions
2011-08-22 21:30:33 +02:00
Kristian Rietveld
bcc1fd7efd
Unit test rows reordered ref count handling in GtkTreeView
2011-08-22 21:30:32 +02:00
Kristian Rietveld
0ee6141cf6
Should validate TreeModelRefCount before the sort and filter model
2011-08-22 21:30:32 +02:00
Kristian Rietveld
9e2fbca594
Add reference counting unit tests for GtkTreeModelFilter
2011-08-22 21:30:32 +02:00
Kristian Rietveld
f42de9e52a
Add more "has child" unit tests
...
This allows for more thorough testing of "has child" filter functions.
We also test a has child filter function with a sort model as
child model, to verify that we receive enough signals to function
properly.
2011-08-22 21:30:32 +02:00
Kristian Rietveld
504d6715c1
Add cleaned up and easier version of unit test for bug 311955
2011-08-22 21:30:32 +02:00