summaryrefslogtreecommitdiff
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* reftests: Fix random failures of reftestBenjamin Otte2014-06-091-4/+15
| | | | | | | | | | | | The reftest is testing "transparent" works as expected by drawing a purple background once with purple and once with transparent and expecting the same result. This works fine unless anti-aliasing happens at rounded corners. The overdraw of the 2nd background changes the antialiased pixels. Fix this by explicitly setting the border radius to 0. Also reindent the file to make it more readable.
* tests: Add multitouch gesture testsCarlos Garnacho2014-06-041-3/+279
| | | | | So far, gesture behavior on lack/excess of touchpoints is tested, as well as sequence hand-in between gestures in these situations.
* Shorten test pathsMatthias Clasen2014-06-031-8/+8
|
* label-sizing reftest: Hardcode ltrMatthias Clasen2014-06-032-0/+2
| | | | This reftest doesn't work in rtl.
* reftests: Add a way to hardcode text directionMatthias Clasen2014-06-031-1/+15
| | | | | | Some tests don't work in rtl, so add a way to hardcode the expected text direction. This is in preparation for running reftests in an rtl locale.
* tests: Add tests for grab interaction with gesturesCarlos Garnacho2014-06-031-0/+118
| | | | | The behavior of gestures that are kept outside/inside a grab is tested, to ensure the former are cancelled and the latter remain unchanged.
* tests: Add gesture tests for early/late sequence claimingCarlos Garnacho2014-06-031-0/+114
| | | | | | | This tests both a sequence being claimed early to be then denied (and handled deeper in propagation chain), and a sequence being claimed late in the capture phase (and thus being cancelled deeper in the propagation chain)
* tests: Inform of gesture updates during recognitionCarlos Garnacho2014-06-031-0/+14
| | | | | May be useful to find out which gestures are still being triggered by a sequence.
* testsuite: Prepare gestures testsuite for mouse/touch eventsCarlos Garnacho2014-06-031-22/+168
| | | | | state is preserved for mouse emulation, and up to 10 touchpoints for touch emulation.
* widget: Only deny a sequence if it was previously claimedCarlos Garnacho2014-06-031-8/+0
| | | | | | | | | | | | Before this change, a sequence being claimed deep in the event propagation chain would make the sequence go denied on every ancestor, regardless of previous state. To make things more consistent, only deny the sequence if it was previously claimed, so the behavior is the same for gesture groups within the widget than for those outside the widget. The gestures testsuite has been updated to reflect this new behavior.
* gesture: Ensure late gestures handling the sequence get the group stateCarlos Garnacho2014-06-031-1/+1
| | | | | | | | | It might happen that a gesture claims a sequence before any other gesture in its group even handled a single event from that sequence. In that case, ensure the state is set accordingly right when the sequence is handled in those. The "group" gesture testcase has been updated to observe this behavior.
* reftests: Use "all" property in inherit-and-inital testBenjamin Otte2014-06-031-80/+2
|
* Run reftests repeatedlyMatthias Clasen2014-06-023-2/+11
| | | | | | Install test files that run the reftests in the Adwaita:dark and HighConstrast themes. It works, so why not.
* Drop debug spew from installed testsMatthias Clasen2014-06-021-1/+1
| | | | This is no longer needed, we found the problem.
* Add an expander reftestMatthias Clasen2014-06-024-0/+84
| | | | | | | This test check that resizing the window when expanding the expander yields the same end result as having the expander expanded to begin with. The test uses the inhibit mechanism introduced in the previous commit.
* Add a way to delay snapshots in reftestsMatthias Clasen2014-06-023-6/+59
| | | | | | | | This adds an inhibit api that code from the reftest module can use to delay the taking of the snapshot. Also refactor the code in gtk-reftest to use the inhibit mechanism for its own delaying of the snapshot until after the first expose.
* Forgotten fileMatthias Clasen2014-06-021-0/+2
|
* Add a reftest for flipping iconsMatthias Clasen2014-06-022-0/+128
| | | | Taking advantage of our new direction flipping ability.
* Add more gestures testsMatthias Clasen2014-05-311-6/+102
| | | | Some of these sequences look wrong/questionable to me.
* gestures test: make more readableMatthias Clasen2014-05-311-5/+39
|
* gestures: Add a test for groupingMatthias Clasen2014-05-311-54/+99
| | | | | I'm not entirely convinced the test produces the expected outcome, here.
* Expand gesture tests a big moreMatthias Clasen2014-05-311-1/+45
| | | | | Print out sequence state changes, and cancellation, and verify that claiming a gestures causes the expected state changes.
* gtk-reftest: Add GMODULE_CFLAGS/LIBSBenjamin Otte2014-05-311-2/+6
| | | | | They aren't included in GTK_DEP_CFLAGS/LIBS so they need to be added manually.
* testsuite: put installed tests in the right placeMatthias Clasen2014-05-3116-20/+20
| | | | | | Follow the prevailing practice and put the installed tests into $libdir/installed-tests/$PACKAGE instead of $pkglibdir/installed-tests.
* gtk-reftest: Don't warn needlesslyMatthias Clasen2014-05-301-1/+1
| | | | | Only warn about the --direction argument if the option was actually specified.
* reftests: Add reftest for direction changeBenjamin Otte2014-05-314-0/+123
| | | | | | | | | | This reftest makes use of the new feature to add signal handlers. It adds a libreftest.so module containing all the code for the reftests. When adding a test named reftest.ui, please keep code contained in a source file names reftest.c and add that file to Makefile.am. https://bugzilla.gnome.org/show_bug.cgi?id=730833
* gtk-reftest: Clarify --direction argument parametersBenjamin Otte2014-05-311-1/+3
| | | | | ... and print a proper error message when the parameter is not recognized.
* gtk-reftest: Allow loading code for reftestsBenjamin Otte2014-05-314-12/+336
| | | | | | | | | | When connecting signal names, gtk-reftest now allows you to use a colon in the signal handler name like so: module:function_name where module is a module loaded from the same directory (or the .libs subdirectory for compatibility with uninstalled libtool) as the running test and the function is resolved in that module. Of course, normal function names work as before.
* reftests: Add a reftest with signalsBenjamin Otte2014-05-313-0/+41
|
* reftests: Automatically connect signalsBenjamin Otte2014-05-311-0/+1
|
* Add a failing builder testcaseMatthias Clasen2014-05-301-0/+55
| | | | | This shows <signal> failing because class_init hasn't been run yet.
* Add some gesture testsMatthias Clasen2014-05-272-0/+304
| | | | | | This test starts to assemble tests related to event propagation, interaction with traditional event signal handlers, claiming of events, etc.
* Organize the iconsMatthias Clasen2014-05-241-21/+22
| | | | | Sort the icon list in check-icon-theme.c, and add comments so we have a chance of keeping the order.
* Add two more icon names to checkMatthias Clasen2014-05-231-1/+3
| | | | These were found in the trash monitor.
* testsuite: Add more icon namesMatthias Clasen2014-05-231-1/+16
| | | | These were found by looking over the GTK+ sources and ui files.
* Add more icons to check-icon-namesMatthias Clasen2014-05-231-1/+13
| | | | | These are icons which are used as GtkArrow replacement, and icons used for the volume button.
* testsuite: Run reftests with GTK_DEBUG=iconthemeMatthias Clasen2014-05-231-1/+1
| | | | | This will hopefully help to track down some hard-to-squash failures that only happen in gnome-continuous.
* testsuite: Add a test for icon namesBenjamin Otte2014-05-232-0/+148
| | | | | | | | | | This test just checks that all the icon names that GTK uses are present in the default icon theme. As icon names are not checked programmatically and we do not want to run into missing-icon icons in the code, this test seems necessary. For now, it's just a stub that tests stock icons.
* reftests: Fix icon-vfuncs reftestBenjamin Otte2014-05-223-1/+15
| | | | The reftest broke when font size lead to labels > 16px.
* reftests: Remove the css-match-style-property-order testJasper St. Pierre2014-05-224-53/+0
| | | | | It was testing -GtkWidget-focus-line-width, which is a dead property we don't use anymore.
* reftests: Fix some more easy GtkButton shadow casesJasper St. Pierre2014-05-222-20/+2
|
* reftests: Fix background-area testBenjamin Otte2014-05-221-8/+1
| | | | | The test should include reset-to-defaults.css but apparently it is older than that file. So it broke when buttons started using shadows.
* tests: add clipboard set_with_data testMarc-André Lureau2014-05-221-0/+38
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=730183
* Update treeview tests for focus changesMatthias Clasen2014-05-221-2/+2
| | | | | The treeview is not using focus-pad here anymore, so update the tests to not expect it.
* css: Actually break at end of the stringBenjamin Otte2014-05-222-0/+28
| | | | | | | | Introduced in 65c4c1555d0634c063c3aa354620de260e4aaf7f. Found by gnome-continuous running the testsuite. Includes fixing a broken test in the testsuite.
* tests: Make icontheme test installableMatthias Clasen2014-05-212-2/+2
| | | | | | | To make the icontheme test run successfully when installed, we need to use the correct test-framework-provided location, and we need to install the test theme without stripping its subdirectory structure.
* testsuite: Add rtl icontheme testsBenjamin Otte2014-05-145-0/+62
|
* icontheme: Add a test for lookup orderMatthias Clasen2014-05-141-1/+141
| | | | | Add tests that verify the expected lookup order between -symbolic, -rtl/-ltr and generic fallback.
* testsuite: Add icontheme tests for generic fallbackMatthias Clasen2014-05-141-0/+24
|
* icontheme: Do a failed lookup at the beginningBenjamin Otte2014-05-141-8/+11
| | | | | Do this to catch the g_warning() that the icontheme code emits the first time a lookup fails.