[librsvg] Disable tests/styles for now, as rsvg_node_get_state() is not exported
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Disable tests/styles for now, as rsvg_node_get_state() is not exported
- Date: Fri, 17 Feb 2017 16:39:49 +0000 (UTC)
commit ca5cb86d1756c2864121a69b1a67bb87b663a712
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Feb 16 22:07:14 2017 -0600
Disable tests/styles for now, as rsvg_node_get_state() is not exported
... and the test uses that internal function. Ugh.
tests/Makefile.am | 3 ++-
tests/styles.c | 8 ++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index babd051..79f1e77 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -3,10 +3,11 @@ include $(top_srcdir)/glib-tap.mk
test_programs = \
rsvg-test \
crash \
- styles \
render-crash \
dimensions
+# Removed "styles" from the above; it is broken right now
+
test_utils_common_sources = \
test-utils.c \
test-utils.h
diff --git a/tests/styles.c b/tests/styles.c
index ec6c60c..ae90f62 100644
--- a/tests/styles.c
+++ b/tests/styles.c
@@ -41,11 +41,11 @@ static void
assert_equal_value (FixtureData *fixture, RsvgNode *node)
{
if (g_str_equal (fixture->target_name, "stroke"))
- assert_equal_color (fixture->expected.color, node->state->stroke->core.color->argb);
+ assert_equal_color (fixture->expected.color, rsvg_node_get_state (node)->stroke->core.color->argb);
else if (g_str_equal (fixture->target_name, "fill"))
- assert_equal_color (fixture->expected.color, node->state->fill->core.color->argb);
+ assert_equal_color (fixture->expected.color, rsvg_node_get_state (node)->fill->core.color->argb);
else if (g_str_equal (fixture->target_name, "stroke-width"))
- assert_equal_length (&fixture->expected.length, &node->state->stroke_width);
+ assert_equal_length (&fixture->expected.length, &rsvg_node_get_state (node)->stroke_width);
else
g_assert_not_reached ();
}
@@ -68,7 +68,7 @@ test_value (FixtureData *fixture)
node = rsvg_defs_lookup (handle->priv->defs, fixture->id);
g_assert (node);
- g_assert (node->state);
+ g_assert (rsvg_node_get_state (node));
assert_equal_value (fixture, node);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]