app/tests: Add convenience macro GIMP_PAUSE()
This commit is contained in:
@ -71,6 +71,11 @@
|
|||||||
function, \
|
function, \
|
||||||
NULL);
|
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);
|
typedef gboolean (*GimpUiTestFunc) (GObject *object);
|
||||||
|
|
||||||
@ -352,8 +357,8 @@ alt_click_is_layer_to_selection (GimpTestFixture *fixture,
|
|||||||
gint assumed_layer_y;
|
gint assumed_layer_y;
|
||||||
|
|
||||||
/* Hardcode an assumption of where the layer is in the
|
/* Hardcode an assumption of where the layer is in the
|
||||||
* GtkTreeView. Doesn't feel worth adding propery API for this. One
|
* GtkTreeView. Doesn't feel worth adding proper API for this. One
|
||||||
* can just add a g_usleep() and re-measure new coordinates if we
|
* can just use GIMP_PAUSE and re-measure new coordinates if we
|
||||||
* start to layout layers in the GtkTreeView differently
|
* start to layout layers in the GtkTreeView differently
|
||||||
*/
|
*/
|
||||||
assumed_layer_x = 96;
|
assumed_layer_x = 96;
|
||||||
|
Reference in New Issue
Block a user