summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* scanner: internals cleanup: Key more things off NamespaceColin Walters2013-02-247-10/+0
| | | | | | | | | | | The .gir format has a weird legacy where stuff like the includes are outside of the <namespace>. But conceptually they're tied together, so let's start reflecting this in the code. This way we can just pass around and look at a Namespace object instead of a 4-tuple of (namespace, includes, c_includes, pkg_config). https://bugzilla.gnome.org/show_bug.cgi?id=694593
* doctool: Use builtin namespace walkerColin Walters2013-02-241-1/+1
| | | | | | Rather than hand-rolling our own. This ensures we traverse all nodes. https://bugzilla.gnome.org/show_bug.cgi?id=694593
* scanner: Synthesize argument names if we don't see oneColin Walters2013-02-243-9/+9
| | | | | | | While this is a bit lame, we need to do something. We preserve the warning message. https://bugzilla.gnome.org/show_bug.cgi?id=694593
* test/gimarshallingtests.c: Fix build on C89 compilersChun-wei Fan2013-02-231-2/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=694426
* Install utility.[hc]Martin Pitt2013-02-201-1/+1
| | | | These are used by foo.[hc] and required to build Regress.gir.
* Ship missing header files for tests/warn/ checkMartin Pitt2013-02-201-1/+1
|
* tests: Be compatible with Automake 1.11, 1.12 and 1.13, and the future, ↵Colin Walters2013-02-192-3/+13
| | | | | | | | hopefully Automake only sees it as one test now, but eh, who cares. https://bugzilla.gnome.org/show_bug.cgi?id=694198
* tests: Be compatible with both Automake 1.12 and 1.13Colin Walters2013-02-191-2/+1
| | | | | | | Revert to using the serial test driver, as that's the easiest path for now, unless we generated a binary to run each warn test. https://bugzilla.gnome.org/693539
* tests: Add RegressTestReferenceEnum to the doc testsJasper St. Pierre2013-02-183-0/+127
| | | | I really messed this one up :(
* sourcescanner: Make sure to mark constants as setJasper St. Pierre2013-02-181-0/+15
| | | | This fixes complex constants.
* sourcescanner: Fix symbolic references in enum membersJasper St. Pierre2013-02-162-15/+24
| | | | | | | We need to copy the source symbols, otherwise we'll overwrite their values. This isn't good. https://bugzilla.gnome.org/show_bug.cgi?id=693939
* docwriter: Use the fully-qualified name for functions and methodsJasper St. Pierre2013-02-15367-367/+367
|
* doctool: Use format_xref to format some links to pagesJasper St. Pierre2013-02-151247-1413/+1417
| | | | | | We don't do a full 100% conversion for all link tags, yet, because I don't want to break too much here. This may come later.
* doctool: Make sure to add "new"Jasper St. Pierre2013-02-1515-15/+15
|
* doctool: Don't put curly braces around the construct props if there are noneJasper St. Pierre2013-02-1511-22/+11
|
* doctool: Don't link to the namespace from the namespace pageJasper St. Pierre2013-02-153-6/+3
|
* tests: Clean up doc generation testsJasper St. Pierre2013-02-151-3/+0
| | | | We no longer have to mkdir -p
* docwriter: Don't render constants for nowJasper St. Pierre2013-02-1554-1353/+0
| | | | | | Clutter has thousands of keysym constants, and until we get them all on one page, this is just tons of tiny files that are just noise.
* doctool: Remove an extra <p> in the signalsJasper St. Pierre2013-02-158-8/+8
|
* doctool: Remove the ctype from the signal return valueJasper St. Pierre2013-02-148-8/+8
| | | | WTF was this here for?
* doctool: Add an link for signal methodsJasper St. Pierre2013-02-1438-38/+38
|
* doctool: Fix Gjs class signatureJasper St. Pierre2013-02-1415-30/+77
|
* doctool: Gjs doesn't have extra signal parametersJasper St. Pierre2013-02-1419-171/+19
|
* doctool: Fix use of <dl> tag in templatesJasper St. Pierre2013-02-14952-5712/+9482
| | | | This isn't legal Mallard
* docwriter: Skip non-introspectable nodes in introspectable languagesJasper St. Pierre2013-02-1444-1912/+0
|
* docwriter: Format list types as if they are arraysJasper St. Pierre2013-02-1441-77/+77
| | | | Language bindings don't actually care
* tests/scanner: add Regress-1.0-*-expected to EXTRA_DISTRico Tzschichholz2013-02-121-1/+4
|
* tests: Use Regress GIR for doctoolJasper St. Pierre2013-02-111368-1243/+54726
| | | | | | This makes us test a lot more functionality in the doc tool, and removes the need to have a lot of different test libraries, and different test infrastructure.
* docwriter: Skip lots of special kinds of parametersJasper St. Pierre2013-02-111-13/+1
| | | | Gjs ignores all of these when constructing function signatures.
* docwriter: Define a new formatter method for getting paramsJasper St. Pierre2013-02-113-1/+7
| | | | | | | | This will let us gracefully skip over parameters that aren't exposed by specific language bindings. It also fixes a bug in the C/Python documentation where we weren't iterating over the right parameters.
* transformer: Ensure that types aren't resolved if we can't find themJasper St. Pierre2013-02-071-0/+9
| | | | | | | | This ensures that things can't try to reference undefined/invalid types without emitting warnings, and that users need to include other GIRs at build time if they want to reference another type. https://bugzilla.gnome.org/show_bug.cgi?id=693098
* annotation: Fix invalid typeJasper St. Pierre2013-02-072-4/+3
| | | | | | | I'm quite sure this is a typo rather than an intended thing. This will gain a test and a warning soon. https://bugzilla.gnome.org/show_bug.cgi?id=693098
* transformer: Warn on unnamed params in declarationsJasper St. Pierre2013-02-071-0/+20
| | | | | | | These params are unannotatable and undocumentable. They really should not be allowed. https://bugzilla.gnome.org/show_bug.cgi?id=693098
* warningtester: Sort the list of warningsJasper St. Pierre2013-02-071-0/+3
| | | | | | | | This means that we can simply put all warnings at the bottom, unrelated to the order that they're emitted in the code, keeping line numbers more stable. https://bugzilla.gnome.org/show_bug.cgi?id=693098
* tests: Move do_moo to warnlibJasper St. Pierre2013-02-076-60/+100
| | | | | | | | We want to warn on unnamed params in declarations to ensure that all functions are bindable. Thus, we need to move a test containing unnamed params to WarnLib so it can be tested. https://bugzilla.gnome.org/show_bug.cgi?id=693098
* tests: Move TestInherit into RegressJasper St. Pierre2013-02-074-36/+132
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=693097
* tests: Move Foo into RegressJasper St. Pierre2013-02-074-483/+1909
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=693097
* tests: Move Annotation into RegressJasper St. Pierre2013-02-075-1267/+1268
| | | | | | | The goal here is to have one master library for testing lots of edge cases for GIRs rather than lots of individual libraries. https://bugzilla.gnome.org/show_bug.cgi?id=693097
* tests: Support warning tests in modern automakeJasper St. Pierre2013-02-071-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=693096
* tests: Update Makefile.amJasper St. Pierre2013-02-071-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=693096
* gimarshalingtests: fix spelling mistake in new vfunc object helpersSimon Feltman2013-02-062-13/+13
|
* doctool: Move signal/vfunc templates to extend function.tmplJasper St. Pierre2013-02-012-2/+19
|
* doctool: Update templates to include the actual instance parameterJasper St. Pierre2013-02-013-10/+8
| | | | Rather than fabricating one with a fake name.
* mallardwriter: Fix code for self-parameter forcingJasper St. Pierre2013-02-011-2/+2
|
* doc-examples-obj: Rename @self to @obj in doc_examples_obj_methodJasper St. Pierre2013-02-015-7/+7
| | | | This will be used to test Python "self" parameter forcing.
* ast: Allow lookup of the instance parameter by nameJasper St. Pierre2013-02-014-4/+8
| | | | | This will be used by the doctool to properly identify the instance parameter.
* doc-examples-obj: Fix documentation for doc_examples_obj_methodJasper St. Pierre2013-02-014-4/+5
| | | | | | We need to properly document the first argument, here. We don't actually iterate over the instance parameter yet, so this will just affect the documentation for @first_arg.
* doctool: Switch to UI v1.0Jasper St. Pierre2013-02-0136-92/+87
| | | | This is to shut yelp up about experimental UI and expanded.
* doctool: Initial import of a Gjs language that we supportJasper St. Pierre2013-02-0113-2/+546
| | | | Copy/pasted from Python.
* ast: Make sure to export c:type for signals and propertiesJasper St. Pierre2013-02-013-39/+39
|