summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_test_textblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/evas/evas_test_textblock.c')
-rw-r--r--src/tests/evas/evas_test_textblock.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index dc3f22d..ef81ae3 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -4654,6 +4654,35 @@ EFL_START_TEST(efl_canvas_text_markup)
4654} 4654}
4655EFL_END_TEST 4655EFL_END_TEST
4656 4656
4657EFL_START_TEST(efl_text_font)
4658{
4659 START_EFL_CANVAS_TEXT_TEST();
4660
4661 efl_text_set(txt, "\n\n\n");
4662
4663 const char * font;
4664 int font_size;
4665 efl_text_font_set(txt, "Sans", 20);
4666 efl_text_font_set(txt, NULL, 0);
4667
4668 efl_text_font_get(txt, &font, &font_size);
4669 fail_if(20 != font_size);
4670 fail_if(strcmp(font,"Sans"));
4671
4672 efl_text_font_set(txt, NULL, 30);
4673 efl_text_font_get(txt, &font, &font_size);
4674 fail_if(30 != font_size);
4675 fail_if(strcmp(font,"Sans"));
4676
4677 efl_text_font_set(txt, "arial", 0);
4678 efl_text_font_get(txt, &font, &font_size);
4679 fail_if(30 != font_size);
4680 fail_if(strcmp(font,"arial"));
4681
4682 END_EFL_CANVAS_TEXT_TEST();
4683}
4684EFL_END_TEST
4685
4657void evas_test_textblock(TCase *tc) 4686void evas_test_textblock(TCase *tc)
4658{ 4687{
4659 tcase_add_test(tc, evas_textblock_simple); 4688 tcase_add_test(tc, evas_textblock_simple);
@@ -4686,5 +4715,6 @@ void evas_test_textblock(TCase *tc)
4686 tcase_add_test(tc, efl_text); 4715 tcase_add_test(tc, efl_text);
4687 tcase_add_test(tc, efl_canvas_text_cursor); 4716 tcase_add_test(tc, efl_canvas_text_cursor);
4688 tcase_add_test(tc, efl_canvas_text_markup); 4717 tcase_add_test(tc, efl_canvas_text_markup);
4718 tcase_add_test(tc, efl_text_font);
4689} 4719}
4690 4720