summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* warningtester: Hack in DATADIRGOBJECT_INTROSPECTION_1_29_15Colin Walters2011-07-271-0/+4
|
* Don't copy python files in scanner testsColin Walters2011-07-271-16/+0
| | | | We work in srcdir != builddir fine now, no need to copy files around.
* giscanner: Make comments starting with tab characters workJasper St. Pierre2011-07-222-1/+30
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=655149
* giscanner: mark GAsyncReadyCallbacks as allow-noneDan Winship2011-07-012-1/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=653484
* Added marshalling tests for GPtrArrayAlex Eftimie2011-06-172-0/+259
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=652256
* gimarshallingtests: Fix and change byte array testsColin Walters2011-06-171-11/+7
| | | | | | | | gi_marshalling_tests_bytearray_full_return was broken; there should be no g_strdup() going on here. While we're at it, change the expected data to actually include non-ASCII so we're testing something a bit more interesting.
* gimarshallingtests: Fix gi_marshalling_tests_init_function()Colin Walters2011-06-171-1/+1
| | | | Array binds more tightly than deref.
* gimarshallingtests: Add a test function that looks like gtk_init()Colin Walters2011-06-162-0/+23
|
* gimarshallingtests: Remove gi_marshalling_tests_array_nested_inColin Walters2011-06-162-24/+0
| | | | We don't actually support nested container types in practice.
* Add tests for complex arrays as in argumentsGOBJECT_INTROSPECTION_1_29_0Giovanni Campagna2011-06-132-93/+235
| | | | | | | Previously gjs supported only arrays of integers. Now that this changed, we need tests to avoid regressions. https://bugzilla.gnome.org/show_bug.cgi?id=646632
* gimarshallingtests: add a few more array testsDan Winship2011-06-102-0/+69
| | | | | | | | Add some tests with parameters on either side of an out array length parameter, to ensure that bindings that omit the length parameter don't mess up any other parameters. https://bugzilla.gnome.org/show_bug.cgi?id=651558
* Don't use soon-to-be deprecated G_CONST_RETURNColin Walters2011-06-091-5/+5
| | | | See https://bugzilla.gnome.org/show_bug.cgi?id=644611
* Fix accessing structure fields that are arraysGiovanni Campagna2011-06-082-12/+3
| | | | | | | | | | We need to distinguish inline arrays inside structures, and arrays that are pointers and annotations, and we can do it with g_type_info_is_pointer(), setting it to FALSE for fixed size arrays. As a side effect, (array fixed-size=N) on a pointer type has no longer the expected result. https://bugzilla.gnome.org/show_bug.cgi?id=646635
* Always add a zero-terminated attribute when it cannot be impliedGiovanni Campagna2011-06-042-26/+28
| | | | | | | | | | | | g-ir-compiler assumes that an array is zero terminated when the attribute is absent and there is no other attribute (length and fixed-size), but g-ir-scanner only added the attribute when it is 0. This means that an explicit zero-terminated=1 annotation would have had no effect. Fix that and at the same time ensure that all other arrays are not zero-terminated by default. https://bugzilla.gnome.org/show_bug.cgi?id=646635
* scanner: Support _get_gtype() as a GType creation suffixColin Walters2011-06-033-4/+5
| | | | | | Based on a patch by Giovanni Campagna <gcampagna@src.gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=646635
* Update expected GIR for commit e70cdbce955475915ea441bdbd45d02d825786f6Colin Walters2011-06-031-5/+5
|
* scanner: Parse GNUC expression statementsColin Walters2011-06-021-0/+4
| | | | | | This is needed so we don't fail to parse gatomic.h from GLib. https://bugzilla.gnome.org/show_bug.cgi?id=651548
* Regress: fix GVariant testsGiovanni Campagna2011-06-011-5/+5
| | | | | | | Functions that return floating GVariants must be marked (transfer none). https://bugzilla.gnome.org/show_bug.cgi?id=622344
* Regress: Add GVariant testsColin Walters2011-05-253-0/+99
|
* Add more coverage for recently added (skip) regress additionsDavid Zeuthen2011-05-133-21/+286
| | | | | | | Whilst doing the gjs patch, it turned out this was needed in order to do a robust test suite - we really want to cover all bases here. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Move recently added (skip) tests to the regress moduleDavid Zeuthen2011-05-136-107/+113
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add support for the (skip) annotation on parameters or return valuesDavid Zeuthen2011-05-133-0/+107
| | | | | | | | This was discussed in bug 649657. https://bugzilla.gnome.org/show_bug.cgi?id=649657 Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add tests for returning zero-terminated arrays of non-stringsGiovanni Campagna2011-05-122-2/+27
| | | | | | | gjs has always supported zero-terminated arrays of strings, and nothing else. Now that this changed, we need to test it. https://bugzilla.gnome.org/show_bug.cgi?id=634253
* GScannerParser: recognize character constantsGiovanni Campagna2011-05-123-1/+20
| | | | | | | Some enumerations (like GVariantClass) use characters instead of plain integers, so we need to recognize them. https://bugzilla.gnome.org/show_bug.cgi?id=646635
* giscanner: read (array) and (element-type) annotations for fieldsGiovanni Campagna2011-05-112-8/+60
| | | | | | | This way fields are no longer limited to basic types, and can be supported without accessor methods. https://bugzilla.gnome.org/show_bug.cgi?id=646635
* Update expected gir for previous changeGOBJECT_INTROSPECTION_0_10_8Colin Walters2011-05-051-0/+5
|
* Add test function regress_test_struct_fixed_array_frobColin Walters2011-05-042-0/+12
|
* g_field_info_get_field: return correct pointer for C arrayMaxim Ermilov2011-05-042-0/+15
| | | | | | Also add a test case. https://bugzilla.gnome.org/show_bug.cgi?id=640468
* gimarshallingtests: Remove incorrect castColin Walters2011-04-181-1/+1
|
* [tests] add a gclosure_return method to test passing GClosures between methodsJohn (J5) Palmieri2011-03-162-1/+38
|
* Add "c:identifier" attribute to GIrNodeValue (for flags and enum values).GOBJECT_INTROSPECTION_0_10_3Laszlo Pandy2011-02-232-3/+77
| | | | | | | | | | | | | | | Flags and enums with a GType have a value_nick and value_name strings available in the class struct. But for flags and enums without GType, we need to get this information from introspection. g_base_info_get_name() gives the string for value_nick. In the GIR, the attribute "c:identifier" is the string neede for value_name. This patch adds the "c:identifier" from GIR to the typelib for all flags and enum values. It can be retireved using g_base_info_get_attribute(info, "c:identifier"). https://bugzilla.gnome.org/show_bug.cgi?id=642757
* Add GIMarshalllingTests function with in parameter as well as GError.Laszlo Pandy2011-02-232-0/+15
| | | | | This allows bindings to test the ability to clean up (in) parameters after a GError is set by the wrapped function.
* Add mask flags to GIMarshallingTests to test for flags with the same value.Laszlo Pandy2011-02-232-2/+10
| | | | | | | Glib uses flag aliases, multiple flag names with the same int value. For example G_IO_FLAG_MASK and G_IO_FLAG_GET_MASK. We need these flag values to test that gi bindings don't assume that all flags have the same value.
* Add warnings for the (constructor) annotationTomeu Vizoso2011-02-225-0/+35
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641347
* Update exact wording of warning in testTomeu Vizoso2011-02-221-1/+1
|
* Add warnings for the (method) annotationTomeu Vizoso2011-02-222-0/+27
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641347
* Add non GType flags to GIMarshallingTests.Laszlo Pandy2011-02-222-0/+58
|
* [tests] Add GIMarshallingTests function for multiple in and multiple out args.Laszlo Pandy2011-02-182-2/+20
|
* Include cairo.h instead of cairo/cairo.hSimon van der Linden2011-02-111-1/+1
| | | | The cairo/ directory is searched for header files anyway.
* Add (method) overridesTomeu Vizoso2011-02-023-0/+16
| | | | | | So methods such as gtk_drag_dest_set() can be put inside Gtk.Widget https://bugzilla.gnome.org/show_bug.cgi?id=639945
* Preserve gtk-doc section namesJohan Dahlin2011-02-011-0/+1
| | | | | Preserve the section names and write them out on the class/record/ interface.
* Add (constructor) annotationTomeu Vizoso2011-01-283-0/+22
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=561264
* Preserve the c:type of array elementsTomeu Vizoso2011-01-213-26/+26
| | | | | | So the element type has the correct is_pointer flag https://bugzilla.gnome.org/show_bug.cgi?id=638929
* Add GIMarshallingTests.Interface2Tomeu Vizoso2011-01-202-0/+44
| | | | | so we can test conflicts when two bases have a vfunc with the same name.
* Initialize GIMarshallingTestsBoxedStruct so we can test its valuesTomeu Vizoso2011-01-191-1/+1
|
* Add GIMarshallingTests function which sets a GError, to test exception ↵Laszlo Pandy2011-01-192-0/+19
| | | | | | handling in bindings. https://bugzilla.gnome.org/show_bug.cgi?id=639834
* [tests] add tests for guint8 arraysIgnacio Casal Quinteiro2011-01-192-0/+16
| | | | | | * guint8 can be interpreted as array characters that can be memcpyied during marshalling so add a test to check if we are correctly handling this codepath
* Add a second enum to GIMarshallingTests to support pygi tests for non-gtype ↵Laszlo Pandy2011-01-171-0/+6
| | | | | | | | enums. There was a bug in pygi in which non-gtype enums shared values between themselves. That is, if there was an attribute Enum.THE_VALUE, it would be available on as OtherEnum.THE_VALUE as well. To make a test case for this bug, we need a second non-gtype enum in GIMarshallingTests to compare with.
* test: gi_marshalling_tests_array_gvariant_inMikkel Kamstrup Erlandsen2011-01-172-0/+16
| | | | | | A new test to expose a bug in pygobject https://bugzilla.gnome.org/show_bug.cgi?id=638915
* Make caller-allocates detection work for struct aliasesPavel Holejsovsky2011-01-133-0/+37
| | | | | | | | | | | | Scanner tries to detect caller-allocates attribute automatically if not explicitly specified by checking that parameter is not double-referenced and is struct or union. This patch adds resolving of aliases when checking whether parameter is struct or union. Also removes old incorrect method transformer.follow_aliases, which was never used in current code. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=639081