[gimp/soc-2010-cage] app/tests: Add convenience macro GIMP_PAUSE()
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage] app/tests: Add convenience macro GIMP_PAUSE()
- Date: Wed, 30 Jun 2010 22:18:12 +0000 (UTC)
commit 0c278e80e7b13c2795493929b4254025cfbac395
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Jun 27 12:41:20 2010 +0200
app/tests: Add convenience macro GIMP_PAUSE()
app/tests/test-ui.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/app/tests/test-ui.c b/app/tests/test-ui.c
index 3a0b8d8..9efe1fd 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]