From: Behdad Esfahbod Date: Thu, 12 May 2011 03:07:47 +0000 (-0400) Subject: [test/font] More get_empty() tests X-Git-Tag: submit/master/20120920.151126~7^2~188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74d9fa3d9ac226ed72702884e721ef94ecc48e22;p=framework%2Fuifw%2Fharfbuzz.git [test/font] More get_empty() tests --- diff --git a/test/test-font.c b/test/test-font.c index bd2655b..e888838 100644 --- a/test/test-font.c +++ b/test/test-font.c @@ -35,6 +35,8 @@ test_face_empty (void) g_assert (hb_face_get_empty ()); g_assert (hb_face_get_empty () == hb_face_create (hb_blob_get_empty (), 0)); g_assert (hb_face_get_empty () == hb_face_create (NULL, 0)); + + g_assert (hb_face_reference_table (hb_face_get_empty (), HB_TAG('h','e','a','d')) == hb_blob_get_empty ()); } static void @@ -52,6 +54,9 @@ test_font_empty (void) g_assert (hb_font_get_empty () == hb_font_create (NULL)); g_assert (hb_font_get_empty () == hb_font_create_sub_font (NULL)); g_assert (hb_font_is_immutable (hb_font_get_empty ())); + + g_assert (hb_font_get_face (hb_font_get_empty ()) == hb_face_get_empty ()); + g_assert (hb_font_get_parent (hb_font_get_empty ()) == NULL); } static const char test_data[] = "test\0data";