aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
Commit message (Collapse)AuthorAgeFilesLines
* Added test for removed pointer out argument.Marcelo Lira2012-03-084-3/+29
|
* Improved and fixed the setter and getter writer functions.Marcelo Lira2012-03-081-1/+2
| | | | Also added an unit test to a protected container property.
* Fixed writeBaseConversion method to handle references to C++ primitives.Marcelo Lira2012-03-082-1/+15
| | | | Added test for a reference to integer as a function argument.
* Added test for a typedef to a primitive numerical type.Marcelo Lira2012-03-081-0/+12
|
* Created unit test for bug #886.Renato Filho2012-03-081-0/+12
| | | | | | | | This test check if a enum inside of a namespace which is not exported to python, work proper. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix refleak during the parent c++ object destruction.Renato Filho2012-03-081-0/+14
| | | | | | | Fixes bug #893. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fixed injected code processing to avoid infinite recursion in virtual method ↵Marcelo Lira2012-03-081-0/+3
| | | | | | calls. Unit tests were also added.
* Removed warning about possible use of uninitialized variable.Hugo Parente Lima2012-03-081-0/+1
|
* Test for bug 464 - "Can't create target lang package and namespace with the ↵Hugo Parente Lima2012-03-083-0/+76
| | | | same name"
* Unit test for bug 851 - "Shiboken recognizes dereference operator overload ↵Hugo Parente Lima2012-03-081-0/+3
| | | | as times operator overload."
* Added tests for conversion operator that returns a constant reference type.Marcelo Lira2012-03-081-0/+66
| | | | | | | This is related to bug #716: http://bugs.pyside.org/show_bug.cgi?id=716 Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Overload decisor was improved to consider PySequences on modified function ↵Marcelo Lira2012-03-081-0/+8
| | | | | | | | | signatures. Unit tests were added as usual. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Renato Araujo <renato.filho@openbossa.org>
* Fix bug 823 - "Shiboken doesn't support function call overloads"Hugo Parente Lima2012-03-081-0/+2
|
* Fixed the argument conversion of modified virtual methods.Marcelo Lira2012-03-082-1/+29
| | | | | | | Wrong conversion code was being outputted to virtual method wrapper code when all arguments were removed. Unit tests were added as well.
* Expanded the tests that simulate QPainter::drawText even further.Marcelo Lira2012-03-081-0/+17
| | | | | | | | The purpose of this is to provide more and more test cases for the overload decisor. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added unit tests to simulate the QPainter::drawText overloads.Marcelo Lira2012-03-082-1/+96
| | | | The classes Rect and RectF were added to help with the imitation.
* Added two more unit tests for the overload decisor.Marcelo Lira2012-03-081-0/+8
|
* Added test for bug 489.Marcelo Lira2012-03-081-0/+6
| | | | | | | http://bugs.pyside.org/show_bug.cgi?id=489 Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Tests for reverse operatorsLauro Neto2012-03-083-0/+161
| | | | | | | | | | | CPython calls nb_and with swapped arguments for reverse operators. This tests checks if the reverse operator raises NotImplementedError instead of TypeError when there isn't a valid reverse operator. Raising TypeError would cause the operator to fail.
* Added test for overload decision situation involving inheritance.Marcelo Lira2012-03-081-0/+6
|
* Marked ObjectType and ObjectModel, from the sample test lib, as explicit.Marcelo Lira2012-03-082-2/+2
|
* Fix bug 616 - "error compiling when public and private methods differ by the ↵Hugo Parente Lima2012-03-081-0/+18
| | | | | | | const-ness" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix regression that caused overload sorting to not respect argument type ↵Hugo Parente Lima2012-03-081-0/+5
| | | | renames.
* Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj ↵Hugo Parente Lima2012-03-081-3/+7
| | | | | | | types?) returns True for empty instance; probably should be False" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added more test cases for protected attributes.Marcelo Lira2012-03-081-1/+13
| | | | | | | | 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>
* Added test to assert the precedence of enum arguments over int implicit ↵Marcelo Lira2012-03-081-0/+52
| | | | | | | | | | | | | 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>
* Fix bug#530 - "Importing division from future breaks QPoint division"Hugo Parente Lima2012-03-082-0/+7
| | | | | 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-081-0/+2
| | | | | | | | 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 to fix the bug#493 - "__eq__ and friends not implemented for ↵Hugo Parente Lima2012-03-082-6/+24
| | | | 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-083-0/+94
| | | | 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
|
* Added support for promoting enums from removed namespaces to upper scope.Marcelo Lira2012-03-081-0/+62
| | | | | | | | | | 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>
* Added tests to check the release of ownership of objects returned from Python.Marcelo Lira2012-03-085-5/+97
| | | | | | | | | | | 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-083-0/+186
| | | | | 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-081-0/+38
| | | | | 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>
* Fix injectcode test to work with the newer version of sequencetoArgcArgv.Hugo Parente Lima2012-03-081-1/+1
|
* 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>
* Created test for abstract function with not exported type as agument.renatofilho2012-03-083-0/+10
| | | | | 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-082-0/+14
| | | | | | | 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-081-0/+3
| | | | | | | 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-085-0/+211
| | | | | | | | | | | | | | | 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>
* Created unit test for unknown class holder.renatofilho2012-03-081-0/+55
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Unit test to target conversion.renatofilho2012-03-081-0/+44
| | | | | 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>