aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added an unit test that puts an attribute on a Shiboken generated class.Marcelo Lira2012-03-081-0/+47
|
* Added a new test binding called 'minimal'.Marcelo Lira2012-03-0812-5/+350
| | | | | | | | | | | | | The purpose is to have the smallest possible binding to help when doing complex changes that require a good deal of debugging and tracking, and the many operations performed in too many wrapped classes will clutter any output used for those purposes. In other words: don't add anything here except with a good reason for it, prefer to use 'sample' or 'other' binding for that. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Unit test for bug 851 - "Shiboken recognizes dereference operator overload ↵Hugo Parente Lima2012-03-082-0/+13
| | | | as times operator overload."
* Merge branch 'casttoreference' into havegcflag-hellMarcelo Lira2012-03-085-0/+129
|\ | | | | | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
| * Added tests for conversion operator that returns a constant reference type.Marcelo Lira2012-03-085-0/+129
| | | | | | | | | | | | | | 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>
* | Improved garbage collector handling of Shiboken types.Marcelo Lira2012-03-081-0/+70
|/
* Replaced "isUserType" test for the correct "hasCppWrapper" before method calls.Marcelo Lira2012-03-081-0/+12
| | | | | | | | Also added an unit test for infinite recursion when duck punching a virtual method. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix bug 813 - "Can not override connect method when subclassing QObject"Hugo Parente Lima2012-03-081-0/+25
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Created test for bug #654.Renato Filho2012-03-081-1/+9
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Overload decisor was improved to consider PySequences on modified function ↵Marcelo Lira2012-03-083-8/+94
| | | | | | | | | signatures. Unit tests were added as usual. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Renato Araujo <renato.filho@openbossa.org>
* Return false when a overload wasn't found on __eq__ and true when an ↵Hugo Parente Lima2012-03-081-0/+1
| | | | | | | overload wasn't found on __ne__. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Add tests for adding reverse operators.Hugo Parente Lima2012-03-082-0/+22
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 823 - "Shiboken doesn't support function call overloads"Hugo Parente Lima2012-03-082-0/+5
|
* Fixed the argument conversion of modified virtual methods.Marcelo Lira2012-03-084-19/+148
| | | | | | | 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-082-0/+47
| | | | | | | | 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-086-2/+139
| | | | The classes Rect and RectF were added to help with the imitation.
* Added two more unit tests for the overload decisor.Marcelo Lira2012-03-082-1/+22
|
* Small refactor on Overload test.Marcelo Lira2012-03-081-21/+10
|
* Added test for bug 489.Marcelo Lira2012-03-083-0/+104
| | | | | | | 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-087-0/+204
| | | | | | | | | | | 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.
* Updated module reload test.Renato Filho2012-03-082-21/+7
| | | | | | | | | Avoid to load a module twice. Fixes bug #734. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Created unittest for bug #704.Renato Filho2012-03-081-0/+61
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* The option "avoid protected hack" is now set via command line.sb-1.0.0-rc1Marcelo Lira2012-03-083-2/+9
| | | | | | | | Instead of the old ugly way of compiling the behaviour forever using "#define". Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Module reload test now considers .pyo files (in addition to .pyc ones).Marcelo Lira2012-03-081-1/+4
|
* Added test to certify that old-style classes will not be accepted as numbers ↵Marcelo Lira2012-03-081-0/+76
| | | | (unless they are).
* Added a test to numpy scalar type being accepted as Python scalar.Marcelo Lira2012-03-081-0/+30
|
* Fix string used in tp_name on inner types.Hugo Parente Lima2012-03-082-1/+6
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added test for overload decision situation involving inheritance.Marcelo Lira2012-03-083-1/+17
|
* Marked ObjectType and ObjectModel, from the sample test lib, as explicit.Marcelo Lira2012-03-082-2/+2
|
* Use action="set" instead of action="add" on reference-count tag.Hugo Parente Lima2012-03-081-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 616 - "error compiling when public and private methods differ by the ↵Hugo Parente Lima2012-03-083-6/+26
| | | | | | | const-ness" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Test bindings project files modified to use key/value pair text files.Marcelo Lira2012-03-086-50/+39
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Test bindings now use project files instead of generator command line options.Marcelo Lira2012-03-084-19/+55
|
* Shiboken binary now responds to the "--version" argument.Marcelo Lira2012-03-082-2/+4
| | | | | The version command line argument was previously answered by GeneratorRunner. This commit also generally updates some CMake files.
* Replaced tabs with spaces on cmake file.Marcelo Lira2012-03-081-5/+4
|
* Shiboken executable calls GeneratorRunner with the renamed "--generator-set" ↵Marcelo Lira2012-03-082-2/+5
| | | | argument.
* Fix regression that caused overload sorting to not respect argument type ↵Hugo Parente Lima2012-03-083-0/+17
| | | | renames.
* Created unit test for enum.__repr__ function.Renato Araujo Oliveira Filho2012-03-081-0/+10
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Use SBK_PYTHON_INCLUDE_DIR instead of PYTHON_INCLUDE_DIRS or ↵Hugo Parente Lima2012-03-082-2/+2
| | | | | | | PYTHON_INCLUDE_PATH. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Fix bug#605 - "Using metaclasses with the PySide classes doesn't work"Hugo Parente Lima2012-03-081-0/+33
|
* Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj ↵Hugo Parente Lima2012-03-083-4/+46
| | | | | | | types?) returns True for empty instance; probably should be False" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* 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>