[lasem] tests: an invalid cairo context before the actual rendering should not be reported as an error.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] tests: an invalid cairo context before the actual rendering should not be reported as an error.
- Date: Sun, 7 Nov 2010 21:48:45 +0000 (UTC)
commit c0d948d27c03b36650012bab5ae4c8cd113f5094
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Sun Nov 7 22:47:57 2010 +0100
tests: an invalid cairo context before the actual rendering should not be reported as an error.
tests/suite.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/suite.c b/tests/suite.c
index a975eba..404b3de 100644
--- a/tests/suite.c
+++ b/tests/suite.c
@@ -73,9 +73,10 @@ render_test (gconstpointer user_data)
cairo = cairo_create (surface);
cairo_surface_destroy (surface);
- lsm_dom_view_render (LSM_DOM_VIEW (view), cairo, 1, 1);
-
- g_assert (cairo_status (cairo) == CAIRO_STATUS_SUCCESS);
+ if (cairo_status (cairo) == CAIRO_STATUS_SUCCESS) {
+ lsm_dom_view_render (LSM_DOM_VIEW (view), cairo, 1, 1);
+ g_assert (cairo_status (cairo) == CAIRO_STATUS_SUCCESS);
+ }
cairo_destroy (cairo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]