From d8f8acdff3c1fe28d1f05f36cf3c33eb7fa5b102 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sun, 27 Jun 2010 12:41:20 +0200 Subject: [PATCH] app/tests: Add convenience macro GIMP_PAUSE() --- app/tests/test-ui.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/tests/test-ui.c b/app/tests/test-ui.c index 3a0b8d8c05..9efe1fd281 100644 --- a/app/tests/test-ui.c +++ b/app/tests/test-ui.c @@ -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;