aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Shiboken enums now have a tp_print representation.Marcelo Lira2012-03-081-0/+14
| | | | | | | | | | This fixes the bug #611[1], and an unit test was also added. [1] http://bugs.openbossa.org/show_bug.cgi?id=611 Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added test for module reloading.Marcelo Lira2012-03-082-0/+52
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added more test cases for protected attributes.Marcelo Lira2012-03-082-7/+51
| | | | | | | | The tests are meant to be useful when compiled without the protected hack or on the win32 platform. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Used c++ pointer during the c++ class attribute get function.Renato Araujo Oliveira Filho2012-03-081-1/+8
| | | | | | | | Now all function get for class attribute return the internal memory of the c++ attribute. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Optimized setParent function.Renato Araujo Oliveira Filho2012-03-081-0/+10
| | | | | | | | | | Replaced use of find in the children list for check on the current child if his has a parent and if the parent is the same. Fixes bug #556 Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Added test to assert the precedence of enum arguments over int implicit ↵Marcelo Lira2012-03-085-0/+119
| | | | | | | | | | | | | conversions. This test is inspired by bug #511 [1], and it checks the precedence of an enum argument over a class that can be implicitly built from an integer. [1] http://bugs.openbossa.org/show_bug.cgi?id=511 Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Add test for invalid type returning from virtualsLauro Neto2012-03-081-0/+57
| | | | | Returning an integer where the binding expects a pointer shouldn't segfault.
* Fix bug#530 - "Importing division from future breaks QPoint division"Hugo Parente Lima2012-03-083-0/+21
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Use sleep function to give time to process breath.sb-1.0.0-beta3Renato Araujo Oliveira Filho2012-03-081-1/+10
| | | | | | | Fixes bug #580 Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Added test case for Bug #572.Marcelo Lira2012-03-082-0/+49
| | | | | | | | Bug #572: Giving unicode value as 'body' argument to WebView's load method crashes python. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Add support for operator overload injection.Hugo Parente Lima2012-03-082-1/+10
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Add support to fix the bug#493 - "__eq__ and friends not implemented for ↵Hugo Parente Lima2012-03-083-6/+33
| | | | QKeyEvent == QKeySequence"
* Fix test after changes to SequenceToArgcArgvLauro Neto2012-03-081-1/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Fix bug#495 - "Broken rich compare operators if they use an object-type as ↵Hugo Parente Lima2012-03-087-0/+141
| | | | parameter"
* Avoid compiler warning about unhandled constant in switch block.Hugo Parente Lima2012-03-081-0/+3
|
* Fix typoHugo Parente Lima2012-03-081-1/+1
|
* Fix bug#554 - "Inner classes don't work and give us a segfault"Hugo Parente Lima2012-03-081-0/+40
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added support for promoting enums from removed namespaces to upper scope.Marcelo Lira2012-03-085-0/+128
| | | | | | | | | | Classes in namespaces marked not to be generated are always moved to upper scopes, the current modification add this same behaviour to enums. Tests were also added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixed code generation for virtual method ownership release of returned value.Marcelo Lira2012-03-081-1/+1
| | | | | The value returned from Python to C++ shouldn't have its reference counting decremented after Python transferring ownership to C++.
* Added tests to check the release of ownership of objects returned from Python.Marcelo Lira2012-03-0810-11/+185
| | | | | | | | | | | The ObjectModel test class was introduced to check if the transference of ownership of objects returned from Python to C++ through a virtual method is working properly. Also updated the other test that uses the ObjectView class. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#513 - "Hardcoded bool return type for operator overloads"Hugo Parente Lima2012-03-088-1/+232
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Test case for proper generation of constructor altered by conversion-rule tag.Marcelo Lira2012-03-085-0/+98
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix compilation errors on Windows.Hugo Parente Lima2012-03-081-5/+4
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Merge branch 'fixapi'Hugo Parente Lima2012-03-081-7/+7
|\ | | | | | | | | | | | | | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> Conflicts: generator/cppgenerator.cpp libshiboken/basewrapper.cpp libshiboken/basewrapper_p.h
| * Namespace Shiboken::Wrapper renamed to Shiboken::Object.Hugo Parente Lima2012-03-081-3/+3
| |
| * namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2012-03-081-6/+6
| |
* | Created debug function on samle bindings.Renato Araujo Oliveira Filho2012-03-082-5/+29
|/ | | | | | | | This function 'cacheSize()' can be used to check how many objects still registered on BindingManager. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Updated some tests to work with new API.Renato Araujo Oliveira Filho2012-03-082-4/+4
|
* Variable SbkBaseWrapperType_Type renamed to SbkObjectType_TypeHugo Parente Lima2012-03-081-1/+1
|
* SbkBaseWrapper_Type variable renamed to SbkObject_TypeHugo Parente Lima2012-03-081-1/+1
|
* SbkBaseWrapperType and some other functions used by Python C-API moved ↵Hugo Parente Lima2012-03-081-1/+1
| | | | outside C++ namespaces.
* Fix injectcode test to work with the newer version of sequencetoArgcArgv.Hugo Parente Lima2012-03-082-5/+5
|
* Fixed typesystem in function where is necessary thread save option.renatofilho2012-03-081-0/+1
| | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
* Simplifies the generated code removing the use of std::auto_ptr.Hugo Parente Lima2012-03-081-0/+2
|
* Write copy constructor for Object types when there is one.Hugo Parente Lima2012-03-081-0/+2
|
* Ignore namespace crash on windows.renatofilho2012-03-081-0/+2
| | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
* Fixed signal register function.renatofilho2012-03-081-1/+1
| | | | | | | Fixes bug #422. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Created test for abstract function with not exported type as agument.renatofilho2012-03-085-0/+16
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#411 - "Incorrect return statement generated in a function that ↵Hugo Parente Lima2012-03-085-1/+45
| | | | | | | returns a reference" Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed namespace lookup during the class generation.renatofilho2012-03-082-1/+6
| | | | | | | fixes bug #414. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Added test for overload decisor handling container dependencies.Marcelo Lira2012-03-0810-3/+312
| | | | | | | | | | | | | | | Explaining with an example. Consider a function called "function" with two signatures accepting a list of Point and a list of PointF, respectively. Consider also that Point is implicitly convertible to PointF. void function(list<Point>&) void function(list<PointF>&) A list of Point should be checked before a list of PointF. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#272 - "__del__ never called by python"Hugo Parente Lima2012-03-081-0/+45
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Created unit test for unknown class holder.renatofilho2012-03-086-0/+151
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Inject code for Point.__reduce__sb-0.5.1Lauro Neto2012-03-081-0/+11
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding pickling testLauro Neto2012-03-081-0/+21
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding deepcopy test.Lauro Neto2012-03-081-0/+12
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Adding value-type copy testLauro Neto2012-03-081-0/+48
|
* Unit test to target conversion.renatofilho2012-03-086-0/+141
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Shiboken avoids generating code for private enums.Marcelo Lira2012-03-081-1/+9
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Created unit test to unsafe parent (parent created from c++)renatofilho2012-03-085-2/+80
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>