diff options
Diffstat (limited to 'clutter/tests/conform')
-rw-r--r-- | clutter/tests/conform/text.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clutter/tests/conform/text.c b/clutter/tests/conform/text.c index 30101ce34..cef99023e 100644 --- a/clutter/tests/conform/text.c +++ b/clutter/tests/conform/text.c @@ -468,6 +468,19 @@ validate_markup_attributes (ClutterText *text, a = attributes->data; + if (a->klass->type == PANGO_ATTR_SCALE) + { + PangoAttrFloat *scale = (PangoAttrFloat*) a; + float resource_scale; + + if (!clutter_actor_get_resource_scale (CLUTTER_ACTOR (text), &resource_scale)) + resource_scale = 1.0; + + g_assert_cmpfloat (scale->value, ==, resource_scale); + g_slist_free_full (attributes, (GDestroyNotify) pango_attribute_destroy); + continue; + } + g_assert (a->klass->type == attr_type); g_assert_cmpint (a->start_index, ==, start_index); g_assert_cmpint (a->end_index, ==, end_index); |