summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: fix test_api, test_dialog, test_enum and test_liststoreDieter Verfaillie2011-03-244-91/+92
|
* Add 'import pygtk; pygtk.require('2.0') statements where neededDieter Verfaillie2011-02-172-0/+4
|
* Revert "Bug 613341 - pygobject tests seem to require pygtk causing a circular"Dieter Verfaillie2011-02-072-47/+25
| | | | This reverts commit 48f0a43f2faffee931ba419dac2687a93344bf5a.
* setup.py: install testsDieter Verfaillie2010-11-032-0/+62
|
* Bug 613341 - pygobject tests seem to require pygtk causing a circularGian Mario Tagliaretti2010-04-052-25/+47
| | | | | | dependencies problem move tests that require pygtk from pygobject to pygtk itself
* Comment out a gdk test for now, needs investigatingGian Mario Tagliaretti2009-12-201-4/+4
|
* Fix wrong gtk.gdk.color_from_hsv definitionArun Raghavan2009-10-311-0/+6
| | | | Bug #594347.
* pango.Context is now instantiable, remove the testGian Mario Tagliaretti2009-06-201-5/+0
|
* Add HSV support to gtk.gdk.Color objectsPaul Pogonyshev2009-05-161-1/+20
| | | | | | | Add read-only float attributes for hue, saturation and value of a color. Add a function to create a color objects out of HSV components. Add unit tests and document new features. Part of bug 546019.
* Add floating-point support to gtk.gdk.ColorPaul Pogonyshev2009-05-151-0/+21
| | | | | | Make constructor accept floating-point arguments. Add 'red_float', 'green_float' and 'blue_float' read-write properties. Test and document new features. Part of bug #546019.
* Make gtk.gdk.Event.time accept 'long' in assignmentsPaul Pogonyshev2009-05-081-0/+9
| | | | Fixes bug #408658.
* Remove 'ltihooks.py' as using deprecated Python module.Paul Pogonyshev2009-05-021-10/+0
| | | | | | | Remove the script and all related imports. All relevant Makefile's now create symbolic links for '.so' files from '.libs' to the level up, so that C helper modules are still importable in built, but not installed source tree. Same as in PyGObject. (Bug #565593.)
* Bug 481715 – Need way to assign to a GtkTextIterPaul Pogonyshev2008-09-111-0/+14
| | | | | | | | | | | | | 2008-09-11 Paul Pogonyshev <pogonyshev@gmx.net> Bug 481715 – Need way to assign to a GtkTextIter * gtk/gtktextview.override (_wrap_gtk_text_iter_assign): New function (based on patch by Owen Taylor). * tests/test_textview.py (TextIterTest): New test. svn path=/trunk/; revision=3041
* Wrap gtk_widget_list_accel_closures fixes #309554Gian Mario Tagliaretti2008-09-012-2/+23
| | | | svn path=/trunk/; revision=3033
* Bug 526189 – add __str__ and/or __repr__ to several typesPaul Pogonyshev2008-08-282-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 526189 – add __str__ and/or __repr__ to several types * gtk/gdk.override (_wrap_gdk_cursor_tp_repr): New function. * gtk/gdkcolor.override (pygdk_color_to_string_smart) (_wrap_gdk_color_tp_repr, _wrap_gdk_color_tp_str): New functions. * gtk/gdkevent.override (_wrap_gdk_event_tp_repr): New function. * gtk/gdkrectangle.override (_wrap_gdk_rectangle_tp_repr): New function. * tests/test_color.py (Tests.test_repr, Tests.test_str): New tests. (Tests._test_color_list): New helper method. * tests/test_rectangle.py (Tests.test_repr): New test. (Tests._test_rectangle_list): New helper method. 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> * pygtk-gdkrectangle.xml: Document __repr__. * pygtk-gdkcolor.xml: Document __repr__ and __str__. * pygtk-gdkevent.xml: Document __repr__. svn path=/trunk/; revision=3029
* comment out test_default_attributes until we get a response on bugs #546005 ↵Gian Mario Tagliaretti2008-08-241-5/+8
| | | | | | and #498010 svn path=/trunk/; revision=3023
* Bug 527212 – types with well-defined equality semantics are not properlyPaul Pogonyshev2008-08-024-48/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-02 Paul Pogonyshev <pogonyshev@gmx.net> Bug 527212 – types with well-defined equality semantics are not properly comparable * gtk/gdk.override (_wrap_pygdk_region_tp_richcompare): New function. * gtk/gdkcolor.override (_wrap_gdk_color_tp_richcompare): New function. * gtk/gdkrectangle.override (_wrap_gdk_rectangle_tp_richcompare): New function. * tests/test_conversion.py (testColorCreation): Move to thematic test file. * tests/Makefile.am: * tests/test_color.py: * tests/test_rectangle.py: Two new test files. 2008-08-02 Paul Pogonyshev <pogonyshev@gmx.net> Bug 527212 – types with well-defined equality semantics are not properly comparable * pygtk-gdkcolor.xml: Document new constructor option. Document proper comparison as of PyGTK 2.14. * pygtk-gdkregion.xml: Document proper comparison as of PyGTK 2.14. * pygtk-gdkrectangle.xml: Document proper comparison as of PyGTK 2.14. svn path=/trunk/; revision=3014
* Fix to work also with integer 'socket_id' argument (bug #539365).Paul Pogonyshev2008-06-262-0/+14
| | | | | | | | | | | | 2008-06-26 Paul Pogonyshev <pogonyshev@gmx.net> * gtk/gtk.override (_wrap_gtk_plug_new): Fix to work also with integer 'socket_id' argument (bug #539365). * tests/Makefile.am: * tests/test_plug.py: New test file. svn path=/trunk/; revision=3001
* Fix logic in negative index branch to avoid refcount corruption.Paul Pogonyshev2008-06-241-0/+18
| | | | | | | | | | | | | 2008-06-24 Paul Pogonyshev <pogonyshev@gmx.net> * gtk/gtktreeview.override (_wrap_gtk_tree_model_tp_getitem): Fix logic in negative index branch to avoid refcount corruption. (_wrap_gtk_tree_model_tp_setitem): Likewise (bug #537459). * tests/test_liststore.py (ListStoreTest.testNegativeIndexGet) (ListStoreTest.testNegativeIndexSet): Two new tests for the bug. svn path=/trunk/; revision=2999
* Check that argument is a subclass of gtk.MenuItem or gtk.ToolItemPaul Pogonyshev2008-06-221-0/+22
| | | | | | | | | | | | | | 2008-06-22 Paul Pogonyshev <pogonyshev@gmx.net> * gtk/gtk.override (_wrap_gtk_action_set_menu_item_type) (_wrap_gtk_action_set_tool_item_type): Check that argument is a subclass of gtk.MenuItem or gtk.ToolItem correspondingly (bug #533644). * tests/test_actiongroup.py (ActionTest.testSetItemClasses): New test for the added type check. svn path=/trunk/; revision=2997
* Fix 'use_underline' being ignored if neither 'text' nor 'stock' is setPaul Pogonyshev2008-06-212-0/+13
| | | | | | | | | | | | 2008-06-21 Paul Pogonyshev <pogonyshev@gmx.net> * gtk/gtk.override (_wrap_gtk_button_new): Fix 'use_underline' being ignored if neither 'text' nor 'stock' is set (bug #524187). * tests/Makefile.am: * tests/test_button.py: New test file. svn path=/trunk/; revision=2995
* Add a gtk.FileChooserDialog get_action method to workaround an issue with ↵Gian Mario Tagliaretti2008-06-082-1/+15
| | | | | | the same mothos of gtk.Widget being called. fixes #534042 svn path=/trunk/; revision=2992
* Add constructor variant similar to what gtk.gdk.color_parse() done. RaisePaul Pogonyshev2008-04-271-0/+12
| | | | | | | | | | | | | 2008-04-27 Paul Pogonyshev <pogonyshev@gmx.net> * gtk/gdkcolor.override (_wrap_gdk_color_new): Add constructor variant similar to what gtk.gdk.color_parse() done. Raise with useful message in case of wrong arguments (bug #527718). * tests/test_conversion.py (Tests.testColorCreation): Test the new constructor with string argument. svn path=/trunk/; revision=2968
* Bug 472908 – Make pango.Context non-instantiableGustavo J. A. M. Carneiro2007-09-021-0/+5
| | | | svn path=/trunk/; revision=2901
* Fix bug in hash() implementation and test it properlyJohan Dahlin2007-08-291-11/+10
| | | | svn path=/trunk/; revision=2898
* Make the bindings a bit more pythonic, implement tp_str, tp_hash andJohan Dahlin2007-08-291-0/+31
| | | | | | | | | | | | 2007-08-29 Johan Dahlin <jdahlin@async.com.br> * pango.override: Make the bindings a bit more pythonic, implement tp_str, tp_hash and tp_compare for a few objects. * tests/test_pango.py: Add tests. svn path=/trunk/; revision=2897
* Allow to set gtk.Bin.child in subclasses.Paul Pogonyshev2007-08-202-0/+19
| | | | svn path=/trunk/; revision=2882
* Allow None as argument for several focus-related methods.Paul Pogonyshev2007-08-111-1/+36
| | | | svn path=/trunk/; revision=2879
* wrap GtkContainer do_forall by Paul PogonyshevGian Mario Tagliaretti2007-07-261-0/+26
| | | | svn path=/trunk/; revision=2862
* wrap gtk.ScaleButton constructor and set_icon(), fix a couple of None ↵Gian Mario Tagliaretti2007-07-261-0/+18
| | | | | | parameters in defs. svn path=/trunk/; revision=2861
* gtk.Action subclass testGustavo J. A. M. Carneiro2007-07-101-0/+17
| | | | svn path=/trunk/; revision=2837
* Fix some unit tests to account for the new memory management model in ↵Gustavo J. A. M. Carneiro2007-05-032-18/+33
| | | | | | pygobject 2.13. svn path=/trunk/; revision=2818
* clean up gc collectionJohan Dahlin2007-01-201-16/+14
| | | | svn path=/trunk/; revision=2807
* more refcount fixes in gdk.gdk.Display.closeGustavo J. A. M. Carneiro2007-01-201-3/+20
| | | | svn path=/trunk/; revision=2806
* Add a display refcounting testJohan Dahlin2007-01-201-0/+10
| | | | svn path=/trunk/; revision=2805
* Remove .cvsignore archivesJohan Dahlin2007-01-161-3/+0
| | | | svn path=/trunk/; revision=2801
* Add unit test for bug #347273Gustavo J. A. M. Carneiro2006-10-021-0/+14
|
* Do not check version in the testsuite, it's already done in the individual ↵Johan Dahlin2006-08-081-7/+2
| | | | modules
* Enable cursor/gtk.TreePath testJohan Dahlin2006-08-072-3/+6
|
* Add a test for #350252Johan Dahlin2006-08-071-0/+13
| | | | | * tests/test_treeview.py (TreeViewTest._test_default_attributes): Add a test for #350252
* Make it possible to reload the gtk+ module, (#349026, Alexander Larsson)Johan Dahlin2006-08-051-0/+8
| | | | | | | * gtk/__init__.py (ver): Make it possible to reload the gtk+ module, (#349026, Alexander Larsson) * tests/test_api.py (APITest.testGlade): Add a test
* Special case __members__ to dir on the real module, fixes (#349892, JohnJohan Dahlin2006-08-051-0/+1
| | | | | | | | * gtk/_lazyutils.py (LazyModule.__getattr__): Special case __members__ to dir on the real module, fixes (#349892, John Finlay) * tests/test_api.py (APITest.testKeysyms): Add a test
* Only load types in gtk when they are used, fixes #346946Johan Dahlin2006-07-132-10/+28
| | | | | | | | | | | | | | | | | | | * codegen/codegen.py: * codegen/defsparser.py: * configure.in: * gtk/Makefile.am: * gtk/__init__.py: * gtk/_gtk.py: * gtk/_lazyutils.py: * gtk/deprecation.py: * gtk/gtk.override: * gtk/gtkmodule.c: (init_gtkimpl): * gtk/libglade.override: * gtk/libglademodule.c: (init_glade): * gtk/pygtk.h: * tests/common.py: * tests/test_api.py: Only load types in gtk when they are used, fixes #346946
* new container tests by Lorenzo Gil SanchezGustavo J. A. M. Carneiro2006-07-132-1/+58
|
* last fixes for 2.9.3 releasePYGTK_2_9_3Gustavo J. A. M. Carneiro2006-07-122-6/+10
|
* Add infrastructure to handle lazy loading. Move keysyms to be loadedJohan Dahlin2006-07-052-0/+9
| | | | | | | | | | | * gtk/Makefile.am: * gtk/__init__.py: * gtk/_lazyutils.py: * tests/Makefile.am: * tests/test_api.py: Add infrastructure to handle lazy loading. Move keysyms to be loaded lazily. Add API tests to make sure keysyms works.
* Check so PyGObject 2.10 is usedJohan Dahlin2006-05-061-0/+6
|
* Allow callback to be set to None, found by Patrick O'BrienJohan Dahlin2006-04-051-0/+12
| | | | | | | | | * gtk/gtktreeview.override (_wrap_gtk_tree_sortable_set_default_sort_func): Allow callback to be set to None, found by Patrick O'Brien * tests/test_liststore.py (ListStoreTest.testSetDefaultSortFunc): Add test
* disable gc sensitive test for nowJohan Dahlin2006-04-031-1/+1
|
* Use classmethodJohan Dahlin2006-04-031-1/+1
|