app/tests: Add convenience macro GIMP_PAUSE()

This commit is contained in:
Martin Nordholts 2010-06-27 12:41:20 +02:00
parent 0258461c9f
commit d8f8acdff3
1 changed files with 7 additions and 2 deletions

View File

@ -71,6 +71,11 @@
function, \
NULL);
/* Put this in the code below when you want the test to pause so you
* can do measurements of widgets on the screen for example
*/
#define GIMP_PAUSE (g_usleep (20 * 1000 * 1000))
typedef gboolean (*GimpUiTestFunc) (GObject *object);
@ -352,8 +357,8 @@ alt_click_is_layer_to_selection (GimpTestFixture *fixture,
gint assumed_layer_y;
/* Hardcode an assumption of where the layer is in the
* GtkTreeView. Doesn't feel worth adding propery API for this. One
* can just add a g_usleep() and re-measure new coordinates if we
* GtkTreeView. Doesn't feel worth adding proper API for this. One
* can just use GIMP_PAUSE and re-measure new coordinates if we
* start to layout layers in the GtkTreeView differently
*/
assumed_layer_x = 96;