summaryrefslogtreecommitdiff
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* reftests: Fix border-style-none reftestBenjamin Otte2015-01-201-2/+1
| | | | Unset all CSS; Adwaita was messing up things.
* stylecontext: Use correct parent style for lookupsBenjamin Otte2015-01-074-0/+58
| | | | | | | | | After 3a337156d11a86c7a88f1f30a09276fdf6f63008 style lookups still used the parent context's style as the parent style, even though after a gtk_style_context_save() the root style of the style context is the proper parent. Testcase attached.
* reftests: Fix typoTing-Wei Lan2014-12-221-1/+1
| | | | | | It causes build failure on MinGW. https://bugzilla.gnome.org/show_bug.cgi?id=741827
* testsuite: Fix test that was committed in a broken stateBenjamin Otte2014-12-012-56/+55
| | | | | | | | | 1) Use font-size instead of color This makes it easier to compare reference and test because the values don't change. 2) Actually sort the reference properly This unbreaks the test.
* Quiet a ruleMatthias Clasen2014-11-301-1/+1
|
* Drop an unused functionMatthias Clasen2014-11-301-8/+0
|
* testsuite: Add a bunch of parsing tests for :not()Benjamin Otte2014-11-253-0/+162
|
* testsuite: add hide-titlebar-when-maximized test for GtkWindowRay Strode2014-11-241-0/+73
| | | | | | | | This commit adds a test that checks whether or not hide-titlebar-when-maximized can be set before the window is realized. https://bugzilla.gnome.org/show_bug.cgi?id=740287
* Update expected resultsMatthias Clasen2014-11-231-5/+5
|
* notify test: Exclude a few new propertiesMatthias Clasen2014-11-231-0/+8
| | | | | The button properties don't make sense on GtkModelButton (indicating that GtkModelButton should really not be a GtkButton subclass).
* Add some more builder testsMatthias Clasen2014-11-037-8/+31
|
* GtkListBox: Fix a bug in unselectionMatthias Clasen2014-10-311-3/+9
| | | | | | Ensure that gtk_list_box_get_selected_row returns NULL after gtk_list_box_unselect_all. Add a testcase that detects this problem.
* Update expected results of a11y testsMatthias Clasen2014-10-273-5/+5
| | | | | The new has-tooltip state is showing up in a number of places, as expected.
* Implement support for ATK_STATE_HAS_TOOLTIPJoanmarie Diggs2014-10-223-0/+112
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=738982
* tests/gtk: Add GdkX11GLContext to the whitelistEmmanuele Bassi2014-10-221-1/+2
| | | | We cannot create them directly anyway.
* tests/a11y/about: Fix expected textEmmanuele Bassi2014-10-221-2/+2
| | | | | | We recently changed the uppercase licensing text to lower case. The reference test that checks the contents of the about dialog has to be fixed to reflect that change.
* Skip GdkX11GLContext in some object testsMatthias Clasen2014-10-212-1/+3
| | | | | Since it can't be constructed without specifying a GdkWindow, which we don't have here.
* Add a a drop-in test for the GtkBuilder parserMatthias Clasen2014-10-1810-1/+185
|
* GtkBuilder: Undo the type name heuristic changesMatthias Clasen2014-10-031-16/+9
| | | | | | | | These turned out to break existing ui files, concretely GWeatherLocationEntry was no longer guessed correctly. Update the testcases to reflect this, and add a testcase for GWeather.
* css: Queue resize for properties that affect clipBenjamin Otte2014-10-035-0/+167
| | | | | | | | This fixes shadows that are animated not updating the clip of the widget they are drawn on. An example of this are the buttons in the CSS shadows example in gtk-demo. Reftest included
* image: Implement clipping support for icon-shadowBenjamin Otte2014-10-034-0/+58
| | | | Testcase is attached.
* Remove redundant checks for NULLMarek Kasik2014-10-023-6/+3
| | | | | | | | Remove checks for NULL before g_free() and g_clear_object(). Merge check for NULL, freeing of pointer and its setting to NULL by g_clear_pointer(). https://bugzilla.gnome.org/show_bug.cgi?id=733157
* reftests: Actually add a text-shadow to the text-shadow reftestJasper St. Pierre2014-09-302-0/+7
| | | | | The reftest still passes, since the code still works, but we might as well test what we claim to test.
* Add a test for GtkBuilder typename-manglingMatthias Clasen2014-09-262-0/+84
| | | | | | | This test makes sure that out heuristic for finding get_type functions works as expected. https://bugzilla.gnome.org/show_bug.cgi?id=635258
* reftest: Build a shared lib on win32Benjamin Otte2014-09-221-0/+8
| | | | | | | | | | | | | Windows needs a shared library to link the modules against, otherwise the undefined symbols make it not work. So build a shared library on Windows. We don't want a library elsewhere, as that just complicates things, so we only make the library shared on Windows and keep it as a noinst library otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=736338
* reftest: Add missing include of reftest-snapshot.hRico Tzschichholz2014-09-221-0/+1
|
* check-icon-names: Check for legacy names againMatthias Clasen2014-09-211-25/+25
| | | | | Keep checking the legacy icon names as long as we support them (this caught gtk-undelete not working quite as expected).
* check-icon-theme: Print the name of the icon-themeMatthias Clasen2014-09-211-0/+5
|
* icon-theme: Test inheritance vs. generic fallbackMatthias Clasen2014-09-219-0/+74
| | | | | Add a few tests that check the behavior of icon theme inheritance vs generic fallback vs symbolic icons.
* reftest: Build a private library for gtk-reftestBenjamin Otte2014-09-211-2/+18
| | | | | | | | This is a noinst library for now, but the idea is to turn it into a proper DLL on Windows, so that we can install it and properly link the modules to it. Windows doesn't allow undefined symbols in modules. https://bugzilla.gnome.org/show_bug.cgi?id=736338
* reftest: Split our more functionalityBenjamin Otte2014-09-215-237/+309
| | | | Split actually taking the snapshot into its own file.
* reftest: Split out some functionality into own fileBenjamin Otte2014-09-214-149/+206
| | | | Comparing two surfaces is something that can be nicely factored out.
* widget: Don't assume opacity is 100%Benjamin Otte2014-09-074-0/+46
| | | | | | | | | | | ... just because there is no style context instantiated yet. Instead, instantiate a style context during realize() and ask it. Fixes problems with dim labels not being dimmed on first show. Testcase included. https://bugzilla.gnome.org/show_bug.cgi?id=735240
* overlay: Handle overlays when no main widget existsBenjamin Otte2014-09-073-0/+61
| | | | | | | | | Just pretend that the main widget is an empty widget the size of the overlay. Makes it possible to write testcases where no size requests are run on overlay widgets before size_allocate() is called. Testcase included.
* notification tests: Skip GtkEntryCompletion::text-columnMatthias Clasen2014-09-031-0/+4
| | | | This one is special.
* Add a testcase for counting selection in treeviewsMatthias Clasen2014-08-301-0/+54
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702957
* treeview tests: Clean up after each testMatthias Clasen2014-08-301-0/+6
| | | | It is not good form to leak in testcases.
* treeview tests: Add bug referencesMatthias Clasen2014-08-301-0/+5
|
* Move gtkthemingengine to deprecated directoryMatthias Clasen2014-08-291-0/+2
| | | | This is the place for wholly-deprecated sources.
* css: Implement font-stretchEmmanuele Bassi2014-08-287-0/+7
| | | | | | | | | | | | | | The font-stretch CSS property is defined in the Level 3 CSS Fonts module, available at: http://dev.w3.org/csswg/css-fonts/#propdef-font-stretch It allows defining a normal, condensed, or expanded face to the font description. Pango already supports it, so this is literally just the CSS parser machinery needed to bridge our CSS to the FontDescription API. https://bugzilla.gnome.org/show_bug.cgi?id=735593
* reftests: Fix MakefileBenjamin Otte2014-08-271-1/+6
| | | | | | | | | | with non-installed tests the build would get an empty $(reftestdir) which would screw up the LDFLAGS. An rpath seems to be required to make libtool build a shared object. Without an rpath line, it only builds a static object. https://bugzilla.gnome.org/show_bug.cgi?id=735401
* build: make reftests work without installed testsBenjamin Otte2014-08-261-10/+14
| | | | | | | The libreftest.so module needs to be built in all cases. Without installed tests, it needs to not be installed though. https://bugzilla.gnome.org/show_bug.cgi?id=735401
* Add tests for parsing int64/uin64 in GtkBuilderMatthias Clasen2014-08-211-0/+10
| | | | This tests the fix in the previous commit.
* Simplify _gtk_text_buffer_get_line_log_attrs()Sébastien Wilmet2014-08-211-2/+2
| | | | | | | | | | | | | | | | NULL was returned in case of an empty last line. Every users needed to special-case this. Now it will return the expected result: char_len of 0 with one PangoLogAttr. In compute_log_attrs(), 'paragraph' will be the empty string "" with 'char_len' == 0. pango_get_log_attrs() works fine with an empty string, it will return one correct PangoLogAttr (because there is one text position for the empty string). It fixes the unit tests for gtk_text_iter_is_cursor_position(). https://bugzilla.gnome.org/show_bug.cgi?id=156164
* textbuffer: unit tests for the empty last lineSébastien Wilmet2014-08-212-0/+50
| | | | | | | | | | | For functions using _gtk_text_buffer_get_line_log_attrs(): - gtk_text_buffer_backspace() - some gtk_text_iter functions (word/sentence/cursor boundaries) As the FIXME comments show, there is a bug with gtk_text_iter_is_cursor_position() for an empty last line. https://bugzilla.gnome.org/show_bug.cgi?id=156164
* css: Round shadow extents properlyBenjamin Otte2014-08-214-0/+58
| | | | | | Otherwise drawing will be clipped. Testcase included
* roundedbox: Only grow border-radius if there is oneBenjamin Otte2014-08-214-0/+60
| | | | | | This is relevant for shadow spread and goes in line with the web. Testcase included.
* label: Respect box-shadow when computing clipBenjamin Otte2014-08-214-0/+58
| | | | | | Testclase included. Also reorder headers to be alphabetic.
* tests textbuffer: don't use GdkColor (deprecated)Sébastien Wilmet2014-08-201-21/+25
|
* reftests: Update for :active => :checked changeBenjamin Otte2014-08-164-8/+8
|