summaryrefslogtreecommitdiff
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Don't use gtk_text_iter_begins_tag() (deprecated)Sébastien Wilmet2015-12-081-2/+2
| | | | | | Use gtk_text_iter_starts_tag() instead. https://bugzilla.gnome.org/show_bug.cgi?id=759092
* Add a test for required cursorsMatthias Clasen2015-12-052-0/+66
| | | | We use these cursors in GTK+, so check for their existence.
* testsuite: Fix notify testsMatthias Clasen2015-12-041-7/+6
| | | | | | | | GtkStatusIcon tests don't work well under xwayland either, so just skip them unconditionally. GtkEntry now fails because the update of the im-module is no longer deferred to an idle, and (gtk-im-simple) is not a valid module name, so skip this property.
* reftests: Add test for missing-image handlingBenjamin Otte2015-12-044-0/+116
| | | | | Add a test that ensures that missing images get the icon-effect properly applied.
* css: Add a :dnd pseudoclassMatthias Clasen2015-12-022-0/+8
| | | | This will be used for drag highlighting.
* css: Rename -gtk-image-effect to -gtk-icon-effectBenjamin Otte2015-12-021-3/+3
| | | | This is a property for icons, so we should name it as such.
* iconhelper: Improve size determination for surfacesBenjamin Otte2015-12-024-0/+87
| | | | | | | Instead of just working for image surface, this should now work for all bounded surfaces. Test included.
* textiter: fix bug in case insensitive backward searchSébastien Wilmet2015-11-301-0/+12
| | | | | | | | | | | | | | | | | | 'win.lines' contains the same content as the GtkTextBuffer, so to find @match_start, forward_chars_with_skipping() is called with skip_decomp=FALSE (the last parameter). So far so good. On the other hand, the content 'lines' (the needle split in lines) is casefolded and normalized for a case insensitive search. So, forward_chars_with_skipping(..., skip_decomp=TRUE) must be called only for the portion of text containing the needle. Since 'start_tmp' contains the location at the start of the match, we can simply begin at that location to find the end of the match. Unit tests are added. https://bugzilla.gnome.org/show_bug.cgi?id=758698
* Add a test for deprecated css propertiesMatthias Clasen2015-11-233-0/+13
|
* cssstyle: Don't store custom css propertiesBenjamin Otte2015-11-201-0/+24
| | | | | | | | | This makes custom CSS properties no longer configurable. But it avoids crashes when loading custom themes, so that's a good thing. Testcase included. https://bugzilla.redhat.com/show_bug.cgi?id=1281234
* Fix make checkMatthias Clasen2015-11-201-0/+3
| | | | | | For some reason, GtkFileChooserNative is causing the defaultvalue test to fail. I couldn't track this down quickly, so skip the type for now.
* Work around g_test_dbus annoyanceMatthias Clasen2015-11-201-0/+9
| | | | | Without iterating a mainloop for a bit, g_test_dbus_down() will give us an error.
* cssprovider: Have a section on import errorBenjamin Otte2015-11-161-0/+13
| | | | | | | | | | | | When loading a nonexisting CSS file using gtk_css_provider_load_from_file() or gtk_css_provider_load_from_path() we would emit the error using a NULL scanner. Don't do that, because we'll have a NULL section in that case and error handlers don't like that. Testcase attached. https://bugzilla.redhat.com/show_bug.cgi?id=1277959
* Add one more selector to CSS parsing testsMatthias Clasen2015-11-141-0/+1
| | | | | Add an E + F selector to the selector parsing tests. It is a CSS selector that we support.
* Always pass the right state in style context gettersMatthias Clasen2015-11-142-14/+14
| | | | Otherwise, we are causing warnings that break make check.
* testsuite: Skip GtkFileChooserNative for notification testsMatthias Clasen2015-11-141-0/+1
| | | | | Like all the other GtkFileChooser implementations, this one emits some unneeded notifications.
* textbuffer: nicer get_iter functions, without return valuesSébastien Wilmet2015-11-121-0/+123
| | | | | | | | | | | | | Avoid crashes when passing an invalid location to a gtk_text_buffer_get_iter_at_*() function. A first attempt added boolean return values to know if @iter has been set to the exact location, but it breaks Python and JS bindings because the out parameter is already a return value in those languages. Unit tests are added. https://bugzilla.gnome.org/show_bug.cgi?id=735341
* Revert "textbuffer: nicer get_iter functions"Matthias Clasen2015-11-121-123/+0
| | | | | | | | This reverts commit a9a1c00cc9255ee9a7f73695f69abe172cde7bfa. Unfortunately, adding the boolean return broke both the python and javascript bindings, since they now return a tuple consisting of the boolean and the out argument.
* testsuite: Remove a bunch of broken testsBenjamin Otte2015-11-046-5012/+0
| | | | | These tests have either been commented out for way too long or use APIs that we don't want to support.
* cssprovider: Have a section when parsing style propertiesBenjamin Otte2015-10-282-0/+64
| | | | | | | | | Signal handlers expect a section to be present, so provide them with one. New testcase included. https://bugzilla.gnome.org/show_bug.cgi?id=757240
* Fix reftestsMatthias Clasen2015-10-2725-260/+24
| | | | | | Multiple reftests were damaged by the element name transition. Repair them. The region reftests are no longer needed, since we no longer do regions.
* Fix make checkMatthias Clasen2015-10-271-0/+4
| | | | | Don't try setting GtkShortcutsShortcut::accelerator to a random value, it only accepts strings that it can parse.
* Don't use g_slist_next in the testsuiteMatthias Clasen2015-10-201-5/+5
| | | | We generally use ->next directly.
* Add some more builder parser testsMatthias Clasen2015-10-204-0/+23
| | | | These tests contain non-canonical and non-existing property names.
* textbuffer: nicer get_iter functionsSébastien Wilmet2015-10-161-0/+123
| | | | | | | | | | | | Avoid crashes when passing an invalid location to a gtk_text_buffer_get_iter_at_*() function. A boolean is returned to know if @iter has been set to the exact location. Unit tests are added. https://bugzilla.gnome.org/show_bug.cgi?id=735341
* Improve text a11y testMatthias Clasen2015-10-151-12/+66
| | | | | Test appending text as well as replacing the entire text. Insert non-ASCII text to verify offsets are correct.
* reftests: Rename reftestBastien Nocera2015-10-083-2/+2
| | | | | | | After figuring out what the actual problem is, name the reftest properly. The actual problem is that the use-fallback property is ignored when using an icon-name on GtkImage.
* reftests: Add test for GtkImage use-fallback propertyBastien Nocera2015-10-083-0/+36
| | | | | | | | | Fallback seems to be working in the GtkIconTheme test suite, but fails in GtkImage itself. This is a test for a bug in the Bluetooth settings. An icon named "phone-apple-iphone" should fallback to "phone" if the gnome-icon-theme-extras package isn't installed.
* Add a test for gtk_style_context_list_classesMatthias Clasen2015-10-031-0/+41
| | | | This test failed before the previous commit.
* Fix make checkMatthias Clasen2015-10-037-7/+7
|
* build: only compile plug/socket when availableChristian Hergert2015-09-221-4/+3
| | | | | | Plug and Socket require X11 windowing. Often times this is compiled on systems with both wayland and x11, but not always. Quartz is an example where it is usually not compiled.
* test-simplify: Explicitly use bashMatthias Clasen2015-09-201-1/+1
| | | | | | The script uses bash features, after all. https://bugzilla.gnome.org/show_bug.cgi?id=755274
* bitmask: Fix broken invert_range() implementationBenjamin Otte2015-09-071-0/+44
| | | | | | | | The speed-up in 7da1f8a1ce145f48b6299fd8be86a64389ff0b0d was wrong in certain conditions, even though it didn't trigger the existing testsuite. New testcase /bitmask/invert_range_hardcoded included.
* Avoid some duplicate test namesMatthias Clasen2015-09-021-2/+0
| | | | GLib considers these an bug now.
* Work towards succeeding make check under WaylandMatthias Clasen2015-08-283-29/+67
| | | | | Skip tests that don't work under Wayland, such as tests for GtkPlug and GtkSocket.
* Make display test not fail under WaylandMatthias Clasen2015-08-281-0/+3
| | | | | This test really only works under X, since it relies on modifying the DISPLAY env var.
* Fix distcheckMatthias Clasen2015-07-212-1/+5
| | | | | | Makefile.decl does not work well with scripts that stay in srcdir, so generate test-simplify from test-simplify.in, just os that it ends up in builddir.
* reftests: Fix underlines in link-coloring reftestBenjamin Otte2015-07-211-0/+4
| | | | | Underlines now need to be manually specified in CSS since GTK got text-decoration support.
* Avoid O(n²) walking of string arraysEmmanuele Bassi2015-07-161-3/+4
| | | | | | | | | | | | | | | "Yo, we heard you like traversing NULL-terminated arrays to operate on them, so we called g_strv_length() as the for condition, so you can iterate the array while iterating the array." Instead of making famed rapper and television producer Xzibit proud, we should avoid calling g_strv_length() on an array while looping on the array, to avoid quadratic complexity. We do this in various places that deal with arrays of strings that we cannot really guess are short enough not to matter — e.g. the list of CSS selectors in the inspector, or the required authentication information for printing.
* label: add support for CSS letter-spacing propertyPaolo Borelli2015-07-065-0/+70
| | | | | Support letter-spacing CSS property on GtkLabel. Reftest is included.
* cssvalue: Change color transitions to run premultipliedBenjamin Otte2015-06-264-0/+54
| | | | | | | | | | | | | | | Previously, the unpremultiplied values from the GdkRGBA were taken. Now we premultiply the color values as specified by the CSS specs. This is only relevant when transitioning with translucent colors. An example is the halfway transition between transparent (0, 0, 0, 0) and white (1, 1, 1, 1). Previously, all 4 values where transitioned separately and the result was semi-transparent gray (0.5, 0.5, 0.5, 0.5). By depending on the alpha value, the result is now semi-transparent white (1, 1, 1, 0.5) which is what one would naively expect. New reftest: color-transition
* Fix up expected results of a11y testsMatthias Clasen2015-06-231-0/+2
| | | | | These changed due to th extra box that GtkAssistant now inserts for each page.
* reftests: fix style class syntax in CSS fileCosimo Cecchi2015-06-121-1/+1
| | | | | | Fixes reftests. https://bugzilla.gnome.org/show_bug.cgi?id=750605
* testsuite: add a test for non-square symbolic iconsCosimo Cecchi2015-06-123-0/+68
| | | | | | To verify the previous fix. https://bugzilla.gnome.org/show_bug.cgi?id=750605
* testsuite: Add deprecation guardsBenjamin Otte2015-05-281-0/+2
|
* Dist the gtk-builder-tool test scriptMatthias Clasen2015-05-261-0/+1
|
* tests: wait for draw before fetching tree view styleCosimo Cecchi2015-05-241-0/+1
| | | | | | | | On some slower machines (e.g. an ARM OBS builder), this test is failing with a race condition where we're trying to fetch the style before it's applied. https://bugzilla.gnome.org/show_bug.cgi?id=749593
* Fix a11y testsMatthias Clasen2015-05-121-4/+5
| | | | | The output of the about dialog test is affected by the keynav fixes.
* Quiet the bitmask testMatthias Clasen2015-05-121-1/+1
| | | | Don't spew so many 0s and 1s.
* notify test: Don't test object relying on dbus connectionsSjoerd Simons2015-05-071-0/+4
| | | | | | Don't test types that rely on a pre-existing dbus session bus. https://bugzilla.gnome.org/show_bug.cgi?id=749009