aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Adds Overflow check to integer types conversions.Marcelo Lira2009-12-073-0/+58
| | | | | | Unit tests were added also. Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* Added unit test for Python class inheriting from a C++ class with multiple ↵Marcelo Lira2009-12-051-0/+41
| | | | inheritance.
* Remove multiple_derived from the test blacklist.Hugo Lima2009-12-041-1/+1
|
* Extended implicit conversion test with a case that uses a reference to an ↵Marcelo Lira2009-12-022-2/+10
| | | | | | ObjectType. Reviewed by Lauro Neto <lauro.neto@openbossa.org>
* Expanded protected method tests with cases of reimplemented grand parent and ↵Marcelo Lira2009-12-024-3/+94
| | | | grand grand parent methods.
* Expanded virtual methods tests with a case of reimplementation of a grand ↵Marcelo Lira2009-12-024-4/+61
| | | | parent method.
* Add test black list.Hugo Lima2009-12-021-4/+10
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Removed all undue usage of lambda with assertRaises on unit tests.Marcelo Lira2009-12-018-15/+15
| | | | Reviewed by Lauro Neto <lauro.neto@openbossa.org>
* Do not try to write the C++ version of an argument when the argument type is aHugo Lima2009-12-011-2/+2
| | | | custom type.
* Improved tests for the QLayout-like ObjectTypeLayout.Marcelo Lira2009-12-013-6/+129
| | | | | | | | In the new test case an ObjectType uses a layout that contains another layout, both created in C++, and then get deleted. Custom code was used to achieve the correct parentship handling Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* Fixed inverted parentship semantics.Marcelo Lira2009-12-011-4/+7
| | | | | | | The parentship was expressed inverted in the type system and was working because the generator implementation was also screwed. Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* Updated ObjectType and ObjectTypeLayout to resemble the Qt's QLayout class.Marcelo Lira2009-12-016-14/+217
| | | | Also added more test cases that use ObjectTypeLayout.
* Added tests for object reparenting.Marcelo Lira2009-12-011-0/+115
|
* Fix some ownership tests.Luciano Wolf2009-12-012-18/+5
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Implement 'child return' examples and support.Luciano Wolf2009-11-304-0/+131
|
* Added tests for something like QLayout.Hugo Lima2009-11-309-1/+191
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Add the generator flag "enable-parent-ctor-heuristic".Hugo Lima2009-11-302-6/+1
| | | | | When enabled, this heuristic will check every constructor for an argument named "parent", if the argument is a pointer, then it'll be the parent of this object.
* Added method to take care of the details of ownership transfer to C++.Marcelo Lira2009-11-302-0/+65
| | | | | | | | | | | | | | | | | | | Simple ownership transference, i.e. without parenting, is now performed by the new BindingManager::transferOwnershipToCpp method. It remove the parent of the transfered object and proceeds transfer or invalidation if needed. The generated code for simple ownership transfer from Python to C++ now reflects this change. Fixed the method BlackBox::keepObjectType that steals an ObjectType ownership to C++ to remove it from its parent also. The BlackBox class does not take care of the stolen object as a proper parent would, but its destructor deletes the object, so the "unparenting" is needed to avoid freeing the same memory twice. Created an unit test that adds children to a parent ObjectType and then steal the children to C++ with BlackBox.keepObjectType. Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* Fixed some typos in tests' comments.Marcelo Lira2009-11-302-2/+2
|
* Wrapper invalidation method recursively updates children objects status.Marcelo Lira2009-11-301-3/+12
| | | | | | | | | | | BindingManager::invalidateWrapper checks if the object to be invalidated carries any children objects and recursively invalidates them. Shiboken::destroyParentInfo function was refactored to call the new recursive wrapper invalidator and then call a helper function that only destroy the parent information. The invalidate parent test was updated.
* Some fixing and refactoring for the ObjectType test class.Marcelo Lira2009-11-302-32/+35
|
* Fix objects/points methods to return a list + fix example using them.Luciano Wolf2009-11-273-9/+34
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Use map instead of list inside BlackBox class.Luciano Wolf2009-11-273-43/+52
| | | | | | Now keepObjectType/keepPoint and retrieveObjectType/retrievePoint uses a ticket to get the object from a map. It's a way better than lists.
* Fix identation of generated code for C++ wrapper destructor.Marcelo Lira2009-11-271-1/+1
| | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Add test for delete child in pythonLauro Neto2009-11-272-0/+51
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Adding test for deleting parentLauro Neto2009-11-271-3/+7
|
* Add invalidate parent testLauro Neto2009-11-271-0/+49
| | | | Using BlackBox to invalidate the parent
* Add test for deleting child in cppLauro Neto2009-11-271-0/+49
|
* Add removeChild and killChild to ObjectType testLauro Neto2009-11-272-7/+27
|
* Add parent tags for ObjectType class.Hugo Lima2009-11-271-0/+10
|
* Small fixes for parent/child unit testsHugo Lima2009-11-271-9/+3
|
* Adding test for deleting parentLauro Neto2009-11-271-0/+79
|
* Test ownership transfer from Python to C++Luciano Wolf2009-11-274-3/+10
| | | | | | | | | There are 3 tests to be implemented in order to check the correctness. - 1. Correct the assert function inside kindergarten example to raise an exception [done]; - 2. Use "create" method to return a C++ created instance and use it to test ownership [done]; - 3. Use e.g.: "Point" class as a value-type to test "invalidate non-polymorphic". Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Improving ownership transference tests.Luciano Wolf2009-11-272-16/+87
|
* Renaming -> KinderGarten to BlackBoxLuciano Wolf2009-11-276-31/+86
|
* Added tests for the validity of Python wrappers used as method arguments.Marcelo Lira2009-11-267-2/+229
| | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Python arguments are now checked for Python wrapper validity.Marcelo Lira2009-11-262-19/+67
| | | | | | | | | | If the expected argument type has implicit conversions the type of the Python object is also checked. The invalidate-after-use test was moved from the ObjectType test to its own test file. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed visibility for multiple derived test classes.Marcelo Lira2009-11-251-9/+9
| | | | Reviewed by Hugo Lima <hugo.lima@openbossa.org>
* Merged with multipleinheritance branchMarcelo Lira2009-11-255-84/+301
|\
| * Added new cases to multiple inheritance tests.Marcelo Lira2009-11-182-12/+90
| |
| * improved multiple inheritance tests with a myriad of new casesMarcelo Lira2009-11-185-81/+220
| |
* | Add overload dependency on PyObjectLauro Neto2009-11-252-1/+13
| | | | | | | | | | | | PyObject_Check should be the last one in the overload type check Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* | Adding test case for sorting overload dataLauro Neto2009-11-257-0/+189
| |
* | Added an PyObject* specialization to the Conversion template toMarcelo Lira2009-11-245-0/+124
| | | | | | | | | | | | | | avoid problems when converting PyObjects to C++. Tests where also added for this. Reviewed by Lauro Neto <lauro.neto@openbossa.org>
* | Updated libsample classes that are missing the LIBSAMPLE_API macro.Marcelo Lira2009-11-244-6/+10
| |
* | Added tests for classes with virtual and non-virtual protected methods,Marcelo Lira2009-11-2410-3/+335
| | | | | | | | | | | | for virtual protected destructors, and for non-virtual protected methods modified with signature removal, add-function and code injection. Also improved the tests for non-protected virtual destructors.
* | Added unit test for virtual destructor.Marcelo Lira2009-11-245-0/+65
| |
* | Added visibility rules to libsample.Hugo Lima2009-11-2328-72/+168
| |
* | Uses __FUNCTION__ instead of __PRETTY_FUNCTION__, which is a GCC extension.Hugo Lima2009-11-236-28/+3
| |
* | Removed the use of fileno from the SimpleFile test, since it is Linux specific.Marcelo Lira2009-11-232-9/+0
| |