aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2017-10-14 22:21:54 +0300
committerCedric BAIL <cedric@osg.samsung.com>2017-11-10 10:29:44 -0800
commit0725ff620b77dd004cba856fc794af868c24203f (patch)
tree75ecb130763db0aa3eaae4645d3d873118e22d62 /src/tests
parentCanvas text: fix applying effects (diff)
downloadefl-0725ff620b77dd004cba856fc794af868c24203f.tar.gz
Canvas text: update style pad when no format nodes are present
This updates the style pad even if there are no format nodes. An example of this is having a default style set to the object. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/evas/evas_test_textblock.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 6700bdc3e6..24f0d27135 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -3668,6 +3668,21 @@ START_TEST(evas_textblock_style)
ck_assert_int_eq(nw, 0);
ck_assert_int_eq(nw, nh);
+ evas_textblock_style_set(newst,
+ "DEFAULT='" TEST_FONT " font_size=10 color=#000"
+ " style=glow text_class=entry'");
+ evas_object_textblock_style_set(tb, newst);
+ evas_object_textblock_text_markup_set(tb, "Hello");
+ evas_object_textblock_size_formatted_get(tb, &w, &h);
+
+ evas_textblock_style_set(newst,
+ "DEFAULT='" TEST_FONT " font_size=10 color=#000 text_class=entry'");
+ evas_object_textblock_style_set(tb, newst);
+ evas_object_textblock_text_markup_set(tb,
+ "<style=glow>Hello");
+ evas_object_textblock_size_formatted_get(tb, &nw, &nh);
+ ck_assert_int_eq(w, nw);
+ ck_assert_int_eq(h, nh);
END_TB_TEST();
}
END_TEST