summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* The option "avoid protected hack" is now set via command line.1.0.0-rc1Marcelo Lira2011-02-173-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 Lira2011-02-171-1/+4
|
* Added test to certify that old-style classes will not be accepted as numbers ↵Marcelo Lira2011-02-161-0/+76
| | | | (unless they are).
* Added a test to numpy scalar type being accepted as Python scalar.Marcelo Lira2011-02-161-0/+30
|
* Fix string used in tp_name on inner types.Hugo Parente Lima2011-02-112-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 Lira2011-02-103-1/+17
|
* Marked ObjectType and ObjectModel, from the sample test lib, as explicit.Marcelo Lira2011-02-102-2/+2
|
* Use action="set" instead of action="add" on reference-count tag.Hugo Parente Lima2011-02-091-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 Lima2011-02-013-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 Lira2011-01-316-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 Lira2011-01-314-19/+55
|
* Shiboken binary now responds to the "--version" argument.Marcelo Lira2011-01-312-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 Lira2011-01-311-5/+4
|
* Shiboken executable calls GeneratorRunner with the renamed "--generator-set" ↵Marcelo Lira2011-01-312-2/+5
| | | | argument.
* Fix regression that caused overload sorting to not respect argument type ↵Hugo Parente Lima2011-01-283-0/+17
| | | | renames.
* Created unit test for enum.__repr__ function.Renato Araujo Oliveira Filho2011-01-281-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 Lima2011-01-262-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 Lima2011-01-261-0/+33
|
* Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj ↵Hugo Parente Lima2011-01-243-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 Lira2011-01-211-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 Lira2011-01-192-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 Lira2011-01-192-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 Filho2011-01-171-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 Filho2011-01-131-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 Lira2011-01-125-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 Neto2011-01-101-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 Lima2011-01-073-0/+21
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Use sleep function to give time to process breath.1.0.0-beta3Renato Araujo Oliveira Filho2011-01-051-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 Lira2011-01-032-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 Lima2010-12-292-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 Lima2010-12-293-6/+33
| | | | QKeyEvent == QKeySequence"
* Fix test after changes to SequenceToArgcArgvLauro Neto2010-12-291-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 Lima2010-12-287-0/+141
| | | | parameter"
* Avoid compiler warning about unhandled constant in switch block.Hugo Parente Lima2010-12-281-0/+3
|
* Fix typoHugo Parente Lima2010-12-281-1/+1
|
* Fix bug#554 - "Inner classes don't work and give us a segfault"Hugo Parente Lima2010-12-231-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 Lira2010-12-235-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 Lira2010-12-171-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 Lira2010-12-1610-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 Lima2010-12-138-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 Lira2010-12-065-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 Lima2010-11-251-5/+4
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Merge branch 'fixapi'Hugo Parente Lima2010-11-231-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 Lima2010-11-231-3/+3
| |
| * namespace Shiboken::BaseType renamed to Shiboken::ObjectType.Hugo Parente Lima2010-11-231-6/+6
| |
* | Created debug function on samle bindings.Renato Araujo Oliveira Filho2010-11-232-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 Filho2010-11-192-4/+4
|
* Variable SbkBaseWrapperType_Type renamed to SbkObjectType_TypeHugo Parente Lima2010-11-101-1/+1
|
* SbkBaseWrapper_Type variable renamed to SbkObject_TypeHugo Parente Lima2010-11-101-1/+1
|
* SbkBaseWrapperType and some other functions used by Python C-API moved ↵Hugo Parente Lima2010-11-101-1/+1
| | | | outside C++ namespaces.