aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Created unit test to unsafe parent (parent created from c++)renatofilho2012-03-082-0/+19
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Added tests for anonymous global and class bound enums.Marcelo Lira2012-03-081-0/+14
|
* Fix OverloadData::isSingleArgumentLauro Neto2012-03-081-0/+3
| | | | | | | | | | | | Now returning true *only* when exactly all overloads accept exactly 1 argument. Fixes compilation of QAudioInput and QAudioOutput from QtMultimedia. Both have start() and start(QIODevice*) overloads, and the previous code was generating 'arg' instead of 'pyargs'. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#339 - "RuntimeError when accessing mousepress event object"Hugo Parente Lima2012-03-082-1/+9
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.filho@openbossa.org>
* Fix code generation for modified constructors.Luciano Wolf2012-03-083-0/+77
| | | | | Reviewers: Renato Araújo <renato.filho@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Change the license boiler plates of all LGPL files removing the special ↵Hugo Parente Lima2010-09-0974-1480/+592
| | | | | | | exception. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Avoid call functions when an error occurs on argument conversion.Renato Filho2010-09-031-0/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix linker problems on MSVC.Hugo Parente Lima2010-08-311-4/+4
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araujo <renato.araujo@openbossa.org>
* Impleted auto code for classes derived from list container.Renato Filho2010-08-301-0/+53
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix the type resolver algorithm.Hugo Parente Lima2010-08-301-2/+3
| | | | | | | | | | | | | | | | | The new algorithm do the following: - Try to use type_info on the object the get the object real name. - Try to find a type resolver with the name returned by type_info. - If a type resolver was found, get the python type. - Else, ask binding manager to resolve the type walking on all possible subclasses found in the inheritance tree. The binding manager has a graph representing the class inheritance tree. Note: This commit break the libshiboken ABI, but not the API. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>
* Fixed libsample export to avoid warnings on windows.Renato Filho2010-08-191-3/+3
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* fixed tests exported symbols.Renato Filho2010-08-1835-172/+170
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Create unit test to function with ambiguous signature in Python side.Renato Filho2010-08-163-1/+76
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Created unit test to operator().Renato Filho2010-08-111-0/+53
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Revert "Created operator != or __ne__ in Point class, to avoid tests errors ↵Marcelo Lira2010-08-032-7/+0
| | | | | | | | | | | | with Python 2.7." This reverts commit ce4b5f535f43bd2ff800b709f88c6f9c5be68003. The unittest.assertNotEqual method has changed in Python 2.7 to use the "!=" operator. The Point class was intentionally left without a "!=" to test if Shiboken would raise a NotImplementedError exception. This commit will be reverted and the tests using Point and assertNotEqual must be changed to avoid the possible usage of "!=".
* Created operator != or __ne__ in Point class, to avoid tests errors with ↵Renato Filho2010-08-022-0/+7
| | | | | | | Python 2.7. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix char* converterRenato Filho2010-07-273-24/+26
| | | | | | | | Fix tests. Created warnning about return last ref of python object. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed wrong overload decisor generated code.Marcelo Lira2010-07-132-0/+35
| | | | | | | | | The decisor must check for the number of arguments before calling Converter::isConvertible method, to avoid passing NULL pointers to it. Unit tests were added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixes bug#253 - "Segmentation Fault when clicked on ListWidget with TableModel"Hugo Parente Lima2010-07-061-0/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Add support for static fields.Hugo Parente Lima2010-07-022-0/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added test for finding type scope in cases involving inheritance.Marcelo Lira2010-06-291-0/+1
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Created unit tests for named arguments.Renato Filho2010-06-172-4/+37
| | | | | Reviewers: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Added test function with an integer argument that have an enum as default value.Marcelo Lira2010-06-152-0/+8
|
* Fix problems on MacOSX due to uninitialized variables and mixing of int, ↵Hugo Parente Lima2010-06-155-22/+20
| | | | | | | uint and ulong variables. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* MSVC complains about the missing operator< in Str when we use it on a std::list.Hugo Parente Lima2010-06-142-0/+6
|
* Added support for protected fields when not using the "protected hack".Marcelo Lira2010-06-031-0/+9
| | | | Tests were also added.
* Fixes code generation for classes with private destructors.Marcelo Lira2010-06-021-0/+3
| | | | | | This fix is specific for the cases when the "protected hack" is turned off. Also added some tests.