summaryrefslogtreecommitdiff
path: root/testsuite/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Quiet a ruleMatthias Clasen2014-11-301-1/+1
|
* 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
* 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.
* tests/gtk: Add GdkX11GLContext to the whitelistEmmanuele Bassi2014-10-221-1/+2
| | | | We cannot create them directly anyway.
* 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.
* Remove redundant checks for NULLMarek Kasik2014-10-022-4/+2
| | | | | | | | 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
* 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
* 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.
* 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
|
* 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
* tests textbuffer: don't use GdkColor (deprecated)Sébastien Wilmet2014-08-201-21/+25
|
* Add some spinbutton testsMatthias Clasen2014-08-142-0/+101
| | | | These tests check some of the changes from the previous commits.
* Add a test for window focus handlingMatthias Clasen2014-08-022-0/+57
| | | | | This is a small test that checks that gtk_window_set/get_focus behave as expected, regardless of the window being shown or hidden.
* Add a test for matching with statesMatthias Clasen2014-07-221-0/+10
|
* Add some tests for GtkAdjustmentMatthias Clasen2014-07-222-0/+165
|
* textiter: fix bug in find_visible_by_log_attrs()Sébastien Wilmet2014-07-171-2/+2
| | | | | | | | | | | | | | | find_by_log_attrs() can return true only in this case: return moved && !gtk_text_iter_is_end (arg_iter); So if the iter moved (i.e. something has been found), but is the end iter, find_by_log_attrs() returns false. Now the same checks are made in find_visible_by_log_attrs(). The public functions using find_visible_by_log_attrs() say in their documentation that false is returned for the end iter, hence the check with gtk_text_iter_is_end(). https://bugzilla.gnome.org/show_bug.cgi?id=618852
* textiter: fix bug in FindLogAttrFunc functionsSébastien Wilmet2014-07-171-3/+3
| | | | | | | | | | | | | | | | attrs[len] is the last PangoLogAttr available, at the iter position after the last character of the line. For a line in the middle or the start of the buffer, the '\n' is taken into account by 'len'. For example the is_word_end is generally reached before the '\n', not after. But for the last line in the buffer, where there is no trailing '\n', it is important to test until attrs[len]. The bug didn't occur before because find_by_log_attrs() worked directly on the iter passed as the function argument. But now it is no longer the case. https://bugzilla.gnome.org/show_bug.cgi?id=618852
* textiter: fix bug in find_by_log_attrs()Sébastien Wilmet2014-07-171-5/+6
| | | | | | | | | | Do not work with the iter passed as the function argument. Work with another iter, and set it back to the function argument only if something has been found. This fixes a few unit tests. But there are regressions for a few others. https://bugzilla.gnome.org/show_bug.cgi?id=618852
* tests textiter: unit tests for sentence boundariesSébastien Wilmet2014-07-171-0/+85
| | | | | | | As the FIXME comment shows, there is a bug. It is the same bug as for the word boundaries. https://bugzilla.gnome.org/show_bug.cgi?id=618852
* tests textiter: unit tests for visible word boundariesSébastien Wilmet2014-07-171-0/+84
| | | | | | As the FIXME comments show, there are several problems. https://bugzilla.gnome.org/show_bug.cgi?id=618852
* tests textiter: unit tests for cursor positionsSébastien Wilmet2014-07-131-0/+100
| | | | | | See the FIXME comment. https://bugzilla.gnome.org/show_bug.cgi?id=618852
* builder test: Adjust expectionsMatthias Clasen2014-07-091-1/+2
| | | | | Dialogs no longer set a headerbar as titlebar unless use-header-bar is set to 1. Update the test to do that.
* Update more places for the changed icon nameMatthias Clasen2014-07-091-1/+1
|
* Add view-context-menu-symbolic to checked icon namesMatthias Clasen2014-07-081-0/+1
|
* Drop has-resize-grip from the notify testMatthias Clasen2014-07-031-0/+4
| | | | The setter is not doing anything, so we won't get notification.
* disable runtime warnings in the defaultvalue testMatthias Clasen2014-07-031-0/+1
| | | | | This test operates generically on all properties, so warning about deprecated properties does not make sense here.
* gtkwindow: Remove resize gripsJasper St. Pierre2014-07-031-2/+0
| | | | | | | | | | | | | | Resize grips were introduced for GNOME 3.0, before we had any of the "new GNOME app" features like invisible borders and CSD. With OS X 10.6 and 10.7, Apple has replaced the classic grips in their applications with invisible borders as well. New GNOME app designs don't use resize grips anymore and the new default theme for GTK+, Adwaita, disables them entirely by forcing their width and height to 0. They're past their time. Remove the code to support them. This can always be reverted if some app relies on them.
* testsuite: Adapt to changed builtin icon pathsMatthias Clasen2014-07-021-4/+4
|
* notification test: Always disable runtime deprecation warningsMatthias Clasen2014-06-281-0/+1
| | | | | These are just not useful in a test that generically deals with all properties.
* Exclude GtkToggleButton::draw-indicator from the notification testMatthias Clasen2014-06-281-0/+4
| | | | | We reverted to emitting redundant notifications for this, so don't assert that we don't.
* Fight deprecation warnings in testMatthias Clasen2014-06-281-1/+1
| | | | This time, in installed tests.
* Disable deprecation warnings in testsMatthias Clasen2014-06-251-0/+2
| | | | | We want to test deprecated properties, so failing the tests with warnings is not productive.
* icon-theme: Add another lookup order testMatthias Clasen2014-06-251-0/+12
| | | | This tests rtl lookup order for non-symbolic icons.
* Add a test for async icon loadingMatthias Clasen2014-06-231-5/+91
|
* notify test: Skip GtkWidget::double-bufferedMatthias Clasen2014-06-221-0/+4
| | | | This property is now deprecated, and ignored, thus: no notification.
* Adapt icontheme testsMatthias Clasen2014-06-221-11/+15
| | | | | With our new, improved icon theme spec compliance, some of the tests need updates to their expected outcomes.
* widgetpath: Deprecate regionsBenjamin Otte2014-06-211-0/+3
| | | | This is a foolowup to d80bf0790d0903ba2825f306b6f7435529f922e2
* Adapt the icontheme testsMatthias Clasen2014-06-201-4/+5
| | | | | With the new way of dealing with the legacy stock icons, the builtin test needed some small updates.
* icontheme: Add some more testsMatthias Clasen2014-06-201-0/+38
| | | | | This test checks that gtk_icon_theme_list_icons and gtk_icon_theme_has_icon work as expected.