aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
Commit message (Collapse)AuthorAgeFilesLines
* Fixed tests to work with python3.x and python2.xRenato Filho2012-03-081-1/+1
|
* Revert "Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken ↵Hugo Parente Lima2012-03-082-7/+0
| | | | | | | | functionality through a Python module"." This reverts commit bc8448d7fb91733ff08c2a6a3a878702c14a24e0. The PSEP didn't reach the final version yet, so this commit can't be released.
* Implements PSEP-0106 and fixes bug 902 - "Expose Shiboken functionality ↵Hugo Parente Lima2012-03-082-0/+7
| | | | through a Python module".
* Fixed generator to consider conversion rules for the return type of wrapper ↵Marcelo Lira2012-03-082-0/+18
| | | | | | | | | methods. Tests were added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Added a test case for a bit-field structure member.Marcelo Lira2012-03-082-1/+4
| | | | Also moved a couple of tests from samplebindings to otherbindings.
* Added test for typedef of unsigned short.Marcelo Lira2012-03-081-0/+2
|
* Added test for user defined primitive type used as public class field.Marcelo Lira2012-03-081-0/+2
|
* Added test for implicit conversion with user's primitive type.Marcelo Lira2012-03-081-0/+6
|
* Added a method modification test dealing with code injection and user's ↵Marcelo Lira2012-03-081-0/+4
| | | | | | primitive type. The inject code has a %CONVERTTOPYTHON that receives an user's primitive type.
* Implemented unit test for deprecated functions.Renato Filho2012-03-081-0/+3
| | | | | Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Improved the generation of argument conversion in modified functions.Marcelo Lira2012-03-082-3/+31
| | | | | | | | Added the SBK_UNUSED macro to libshiboken to prevent compilation warnings. An unit test was added. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added tests for a class that its only constructor is the copy one.Marcelo Lira2012-03-083-0/+105
| | | | | | | | This simulates a situation found in QtWebKit's QWebDatabase and QWebSecurityOrigin classes. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for classes that are typedefs that implement a template class.Marcelo Lira2012-03-083-0/+103
| | | | This simulates the situation found in Qt's phonon module.
* The type checking now pays attention to the <no-null-pointer/> tag.Marcelo Lira2012-03-082-0/+10
| | | | An unit test was also added for it.
* Added a test dealing with a reference to an Object Type passed to Python.Marcelo Lira2012-03-083-0/+92
| | | | | The test is for an Object Type that didn't existed in Python and is passed to it as C++ reference through a virtual method.
* Improved guessCPythonCheckFunction method to produce an AbstractMetaType for ↵Marcelo Lira2012-03-082-0/+10
| | | | | | | | | | known types. This is in opposition of simply returning a string with a custom type check. The details are in the docstring in ShibokenGenerator header. Also added a new modification test and refactored here and there in the sample binding type system.
* Included tests for added function signatures very similar to already ↵Marcelo Lira2012-03-082-3/+18
| | | | | | | | | | | | | | | existing ones. Specifically this causes the situation when there is in C++ a function with an argument that is a reference to a Value Type, and the user adds a very similar function with the same type, but passed as value. Example: C++ : function(const TYPE& a, int b) Added: function(TYPE) The return type of ShibokenGenerator::getArgumentReplacement() method was modified, because the argument object is more useful than its index.
* Added tests for custom conversion and buffer protocol.Marcelo Lira2012-03-083-0/+292
| | | | It it inspired by some of PySide's QByteArray tests.
* Fixed type system variable replacement for arguments removed with conversion ↵Marcelo Lira2012-03-082-0/+10
| | | | | | | | | | rule. Also added an array argument modification test, and moved AutoArrayPointer from libpyside to libshiboken. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added compilation test for value type argument in a lshift operator.Marcelo Lira2012-03-081-0/+1
|
* 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"