aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed modifications to global functions.sb-0.10.7Marcelo Lira2012-03-092-0/+38
| | | | | | | Also added unit test. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added improved functionality for the 'conversion-rule' tag.Marcelo Lira2012-03-092-4/+180
| | | | | | | | | | | | | It works for primitive, container and value types. Object types doesn't have conversion rules because they can not have implicit conversions, and the regular conversion is always the same (get C++ object held on Python wrapper, and finding/creating a Python wrapper to a C++ pointer). Unit tests were added. Documentation was updated. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fixes method's argument types that are templates but the template variable ↵Marcelo Lira2012-03-095-5/+47
| | | | | | | | | | wasn't declared. An unit test was added. Other unrelated tests had minor improvements. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Revert "Implement getTypeIndex function for types no generated types and ↵Hugo Parente Lima2012-03-096-167/+4
| | | | | | | | primitive types." This commit broke the macosx build of PySide. This reverts commit e9758a01f15bc53de8e03b77ec8beb5673b1b1af.
* Implement getTypeIndex function for types no generated types and primitive ↵Hugo Parente Lima2012-03-096-4/+167
| | | | | | | types. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added setTargetLangPackage and targetLangPackage methods to PrimitiveTypeEntry.sb-0.10.6Marcelo Lira2012-03-091-2/+2
| | | | | | | Updated tests. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Included the unsigned types in TypeEntry::isCppPrimitive() method list of types.Marcelo Lira2012-03-092-0/+43
| | | | Also added a test for a typedef of an unsigned numerical type.
* Fix bug 731 - "Can't specify more than a single 'since' argument"Hugo Parente Lima2012-03-097-11/+12
|
* AbstractMetaClasses now hold the instantiation types for the templates they ↵Marcelo Lira2012-03-092-1/+53
| | | | | | | | | | | implement. AbstractMetaClasses that are typedefs for template class instantiations use to keep the template from where they derive, but didn't keep the values used for the derivation. Now this is fixed, and with an unit test. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added default constructor option for value types.Marcelo Lira2012-03-093-0/+94
| | | | | | | | The unit test is in place and the 'value-type' tag documentation was update with information about the 'default-constructor' attribute. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added a test for operator methods removal.Marcelo Lira2012-03-093-0/+152
|
* Fixed TypeEntry::isCppPrimitive() to process typedefs and "long long" type.Marcelo Lira2012-03-093-0/+108
| | | | And added an unit test.
* Added revision attribute to type entries tags and flags-revision to ↵Hugo Parente Lima2012-03-093-0/+101
| | | | | | | enum-type tag. These attributes will be useful to separate the wrapped API in revisions and ease the task of producing ABI compatible bindings.
* Fixed conversion operators type resolution for references to types.Marcelo Lira2012-03-092-0/+60
| | | | | | | | | This is fixes bug #716: http://bugs.pyside.org/show_bug.cgi?id=716 Unit tests were added as usual. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Add support to template types as arguments on user added functions.sb-0.10.2Hugo Parente Lima2012-03-092-0/+18
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Added support for module extra includes.Marcelo Lira2012-03-093-0/+117
| | | | | | | Unit tests were also added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Use QDir::currentPath() to avoid problems with armel-Meego target.Luciano Wolf2012-03-092-2/+2
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Added tests for template containers used as arguments for functions.Marcelo Lira2012-03-092-0/+75
|
* Added a depth counter to avoid segmentation faults when discarding type entries.Marcelo Lira2012-03-092-0/+30
| | | | | | | And an unit test was added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added a test for dropped type system entries.Marcelo Lira2012-03-094-1/+153
| | | | Also updated the TestUtil class to deal with dropped entries.
* Global functions can now be renamed.Marcelo Lira2012-03-092-0/+26
| | | | | | | | This is accomplished via the "rename" attribute on the "function" tag. An unit test was added and the documentation updated. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Use QCoreApplication instead of QApplication for TestModifyDocumentation.Hugo Parente Lima2012-03-091-2/+9
| | | | | | | | This change was made just to avoid a crash on our FREMANTLE/ARMEL buildbot, the test still the same. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Avoid crash reported on http://bugreports.qt.nokia.com/browse/QTBUG-16868Hugo Parente Lima2012-03-091-4/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Un-hardcode test resources pathsb-0.9.3Lauro Neto2012-03-093-2/+9
| | | | | | | | | | | | | | | Instead of hardcoding (through the __FILE__ macro) use the current application directory to find the resources. The previous scheme didn't allow running the tests when the source code isn't available. List of resources: - a.xml -> testmodifydocumentation - utf8code.txt -> testcodeinjection Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Add support to fix bug#493 - "__eq__ and friends not implemented for ↵Hugo Parente Lima2012-03-091-1/+16
| | | | | | | QKeyEvent == QKeySequence" Reviewer: Renato Araújo <renato.filho@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Make installed tests executableLauro Neto2012-03-091-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
* Add option to install the tests binaries.Lauro Neto2012-03-091-0/+3
| | | | | Reviewer: Hugo Lima <hugo.lima@openbossa.org> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
* Added unit test to field removal.Marcelo Lira2012-03-093-0/+93
|
* Implemented support to added functions for TypeAlias.sb-0.8.1renatofilho2012-03-092-0/+28
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Added a better support for resolution of enum value attribution.Marcelo Lira2012-03-092-0/+74
| | | | | | | Plus tests. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Private enums are now accepted in the type system database.Marcelo Lira2012-03-092-0/+44
| | | | | This is done to allow enum value evaluation. Comes together with a nice test.
* Improved resolution of enum value attributions.Marcelo Lira2012-03-092-2/+54
| | | | | | | | In particular when an enum item is set to the value of an item from other enum. The code for this was moved to the method AbstractMetaBuilder::findOutValueFromString. Tests were added as well. s# ../tests/.testenum.h.swp
* Fixed AbstractMetaBuilder to handle enum values receiving boolean values.Marcelo Lira2012-03-091-3/+40
| | | | | | | | | | | | | | | | In other words, this enum { Positive = true, Negative = false }; is now properly recognized. Tests were added as usual. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Argument types that are arrays with specified sizes are correctly recognized.Marcelo Lira2012-03-093-0/+159
| | | | | | | | | | | The AbstractMetaBuilder::translateType method now tries to figure out properly the size of array argument types specified with enum items instead of literal numbers. Test cases were also added. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for global enums.Marcelo Lira2012-03-092-0/+38
| | | | | They check if the AbstractMetaEnumValues hold the correct value information about the enum item described.
* Updates tests to use nesting of type declarations.Marcelo Lira2012-03-095-17/+147
| | | | | | | Also added a new cases to test the nesting of type tags a bit more. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added tests for anonymous enums.Marcelo Lira2012-03-092-0/+31
|
* Fixed function modification propagation.Renato Filho2012-03-092-0/+87
| | | | | | | Now all modifications on base function will be propagate until a new modification was found. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Lauro Moura <lauro.neto@openbossa.org>
* Created function to discovery when a class implement a container type.Renato Filho2012-03-093-0/+97
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* If a class have a non final method doesn't mean that class is polymorphic.Hugo Parente Lima2012-03-092-0/+33
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>
* Make libxml2 and libxslt optional dependencies.Hugo Parente Lima2012-03-091-1/+3
|
* Fixed memory leak.Renato Filho2012-03-091-2/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#260 - "Can't modify argument name of a function added with ↵Hugo Parente Lima2012-03-092-0/+28
| | | | add-function tag."
* Added test for a class inheriting from a container template.Marcelo Lira2012-03-092-0/+37
| | | | | The test is simple and only checks if the classes were inherited properly.
* Added test for class member inside a two nested namespaces.Marcelo Lira2012-03-092-0/+30
|
* Added test for template inheritance involving forward declaration and namespace.Marcelo Lira2012-03-092-0/+36
| | | | | | | This test case is similar to a previous test with forward declaration except that this time everything is inside a namespace. This slightly different situation could trigger problems in a different place on AbstractMetaBuilder.
* Adds test case to namespace members, namely enums and functions.Marcelo Lira2012-03-093-0/+94
|
* Added test for template inheritance involving a forward declaration.Marcelo Lira2012-03-092-0/+33
| | | | | When things goes awry methods from the template parent class got duplicated in the inheriting class.
* Added test for type resolution order.Marcelo Lira2012-03-093-2/+97
| | | | | | Methods or functions signatures using any type from the library being wrapped must be processed after all the library types or else the function/method will be rejected.
* Created test for namespace resolution name.Renato Filho2012-03-092-0/+44
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>