Commit Graph

180 Commits

Author SHA1 Message Date
Michael Henning 2df4fa2d6f tests: fix running make check with both parallel make and xvfb
Before, the xvfbs would all try to be on DISPLAY=:99, which
caused issues.
2013-05-12 19:38:59 -04:00
Michael Natterer a078ca3f5f app: change serialization of the right docks width in SWM (again)
Use "right-docks-width" and always a positive value instead of
"right-docks-position" (as opponsed to "left-docks-width", that
distinction is a GtkPaned implementation detail and does not belong
into a config file). Parse all old values too. Also fix a glitch in
the deserialization code which might fix bug #700147.
2013-05-13 00:00:57 +02:00
Michael Natterer c865d8f141 Bug 622054 - Levels Tool gray point picker causes lockup
Bail out in gimp_levels_config_adjust_by_colors() if pure
back or white was picked as gray (gamma).
2013-03-27 22:28:29 +01:00
Michael Natterer e6d1234456 app: fix expected single-window sessionrc so tests pass again 2013-02-28 01:29:53 +01:00
Michael Natterer 8e19da16ab tests: update expected sessionrc files for the show-button-bar change 2013-02-18 01:31:07 +01:00
Ville Skyttä 6b0d1038cc Bug 692641 - Various spelling fixes 2013-01-27 18:59:02 +01:00
Michael Natterer b8e2496bf3 app: fix the tests so make check succeeds again
- disable maximize_state_in_aux_data because it doesn'T work without WM
- fix window_role for the new unique tock and toolbox roles
2012-11-19 23:22:32 +01:00
Michael Natterer d46041665c app: disable UI test alt_click_is_layer_to_selection()
It makes assumptions about widget positions that don't work on Jenkins.
2012-08-04 01:53:55 +02:00
Michael Natterer fc28e60dec app: un-fail (not fix) test-ui so make check runs again
keyboard_zoom_focus: disabled, because it fails randomly

restore_recently_closed_multi_column_dock: tracked down the
failure to GTK+ and disabled until we depend on GTK+ >= 2.24.11

repeatedly_switch_window_mode: disabled, I have no clue how to
fix this. These UI tests run way too much code to be useful.
2012-08-03 23:43:09 +02:00
Michael Natterer 6c025d52bf app: make app/tests/ build again 2012-06-20 22:13:06 +02:00
Michael Natterer 2bf48b5f19 app: remove leftover operation testing junk from tests Makefile.am 2012-06-17 00:22:48 +02:00
Ville Sokk 1edb18c30a app: modified and moved gegl operation testing to operations/tests 2012-06-14 21:30:00 +03:00
Ville Sokk e35427071b app: added test for gegl operations 2012-06-14 21:29:52 +03:00
Ville Sokk 4148d4a5af app: fixed typos in testing code 2012-06-05 22:03:26 +03:00
Michael Henning 89760cf044 app: Save the maximized state of the main window in the sessionrc file. 2012-05-27 20:42:02 +02:00
Michael Natterer b058137145 Bug 676389 - Compilation fails using clang because of -u options passed to linker
Use -Wl,-u,symbol to makes things build instead of just -u symbol.
2012-05-20 19:29:44 +02:00
Michael Natterer 91392f85e5 app: make tests build again 2012-05-19 01:27:37 +02:00
Michael Natterer ba4034f8dc app: fix tests: must not link against libgimp 2012-05-10 22:48:37 +02:00
Martin Nordholts d7db79c2f2 app: Make tests build
In particular: link.
2012-05-10 22:12:58 +02:00
Michael Natterer af2ad3228f app: fail less badly in tests 2012-05-05 20:36:54 +02:00
Michael Muré 9966bcfd13 remove now useless and deprecated g_thread_init
Warning

g_thread_init has been deprecated since version 2.32 and should not be used in newly-written code. This function is no longer necessary. The GLib threading system is automatically initialized at the start of your program.
2012-05-03 20:44:07 +09:00
Martin Nordholts 1adfcfaf58 app/tests: Build and initialize GEGL
2 tests left that doesn't pass, will fix
2012-05-02 22:32:41 +02:00
Martin Nordholts 563d3c10d6 Make 'make check' compile 2012-05-02 21:53:38 +02:00
Michael Natterer c07325a005 app: add "precision" argument to gimp_image_new() 2012-05-02 17:51:09 +02:00
Michael Natterer a9e60bf6ce app: make the tests build again 2012-05-02 17:51:03 +02:00
Michael Natterer c14738806e app: use gimp_image_get_layer_format() instead of dealing with image_type 2012-05-02 17:50:57 +02:00
Michael Natterer 105d2207ef app: require a non-NULL format in gimp_tile_manager_create_buffer() 2012-05-02 17:50:56 +02:00
Michael Natterer 765c2cfea2 app: replace GimpDraable's type by a Babl format
and change gimp_drawable_new() and all gimp_layer_new() variants to
take formats instead of types.
2012-05-02 17:46:06 +02:00
Michael Natterer 411b1b6f4b app: make test-gimptilebackendtilemanager.c build again 2012-05-02 17:46:02 +02:00
Martin Nordholts 08cbf159c1 app/tests: Update gegl_buffer_get() code so it builds 2012-04-01 11:44:12 +02:00
Øyvind Kolås 2ea41ea3f6 tests: update API usage of gimptilebackendtilemanager test 2012-03-13 13:09:59 +00:00
Martin Nordholts 6335190ff7 app/tests: The single-window-mode setting is in the sessionrc now
We don't need to have a special gimprc because of it.
2012-01-10 19:47:52 +01:00
Michael Natterer 3821eb1a56 app: update test sessionrc files for the moved session config properties 2011-11-05 21:13:16 +01:00
Martin Nordholts d32e1ed351 app/tests: Simplify
Use g_test_add_func() and g_test_add_data_func().
2011-10-15 13:19:04 +02:00
Martin Nordholts 16ca43e4c8 Revert "app: Add /gimptilebackendtilemanager/basic_write unit test"
This reverts commit e4d6726bde.
We need a GEGL release to depend on first.
2011-10-02 18:41:11 +02:00
Martin Nordholts e4d6726bde app: Add /gimptilebackendtilemanager/basic_write unit test
Rename the 'basic_usage' test to 'basic_read' and add 'basic_write'
test. Implement GimpTileBackendTileManagerPrivate enough to make them
pass.

Note that these tests currently do not work with GIMP's "effective
tile size" optimization.
2011-10-02 18:25:08 +02:00
Martin Nordholts cb242a484e app: Add basic GimpTileBackendTileManager unit test
Add a super basic GimpTileBackendTileManager unit test and implement
GimpTileBackendTileManager enough to make it pass. Still a lot of work
left to do, this was just to get things up and running.
2011-09-30 12:00:40 +02:00
Martin Nordholts 2b2ecd1af1 app/tests: Remove static Gimp *gimp
Say no to evilness.
2011-09-30 07:56:47 +02:00
Martin Nordholts 172c3eb935 app/tests: Add single-window mode specific tests 2011-07-20 16:36:36 +02:00
Martin Nordholts 6c880859ea app/tests: Fix sporadic '/gimp-ui/repeatedly_switch_window_mode' failure 2011-07-03 11:28:42 +02:00
Martin Nordholts f55f26c9b8 app/tests: Add single-window mode session files test
Rename and copy some session files and add a single-window mode
session files test.
2011-06-14 23:34:12 +02:00
Martin Nordholts e74d220930 app: Restore docks in an idle handler
In single-window mode, gimp_session_managed_set_aux_info() will set
the size of the dock areas at the sides. If we don't wait for those
areas to get their size-allocation, we can't properly restore the
docks inside them, so do that in an idle callback.

Also add a required call to gimp_test_run_mainloop_until_idle()
because of this in the 'automatic_tab_style' test.
2011-06-14 23:34:12 +02:00
Martin Nordholts bed298be13 app: Remember column width in multi-column dock windows 2011-05-31 23:15:39 +02:00
Martin Nordholts 981546c02e app/tests: Make sessionrc-2-6 more realistic
GIMP 2.6 session files can't have many docks in a dock window, so
remove that from the GIMP 2.6 session file we use for compatibility
testing. Also remove the "gimp-single-image-window" entry.

The downside is that we need a separate 'expected'-file, but we need
to live with that.
2011-05-31 23:15:38 +02:00
Martin Nordholts 10aa3921a0 app: Rememeber if image windows are opened
Rememeber if image windows are opened because we want the
gimp_session_info_restore() code to run for the single-image window
once that code is in place.
2011-05-28 16:18:34 +02:00
Martin Nordholts a456a70bfd app/tests: Add test for gimp_session_info_read_geometry() fix
Add regression test for "app: Give configure event info to
gimp_session_info_read_geometry()", commit
93fd257c52, which fails without that fix
being present.
2011-05-27 22:34:24 +02:00
Martin Nordholts cd72389404 app/tests: Add '/gimp-ui/close_image'
Add '/gimp-ui/close_image', mainly so that we can do tests that
becomes much harder if there is an image around.
2011-05-27 22:33:55 +02:00
Martin Nordholts 2095c9307b app/tests: Fix typo in gimp-app-test-utils.c 2011-05-27 22:33:54 +02:00
Martin Nordholts 9325120291 app/tests: Distribute new session files 2011-05-20 18:19:56 +02:00
Martin Nordholts 87e69d2312 app/tests: Add test for GIMP 2.8 multi window session files
Move code in test-session-management.c to a common place so we can
have several variants of session management tests. We can't easily run
all session management tests in a single process, because some parts
of Gimp (the GObject) initialization eeks if done twice in the same
process.

Rename test-session-management.c to test-session-2-6-compatibility.c
and create a new test for GIMP 2.8 multi-window mode session files,
namely test-session-2-8-compatibility-multi-window.c. Copy and rename
sessionrc files accordingly.
2011-05-18 21:30:04 +02:00