|
|
|
@ -53,11 +53,11 @@ test_ot_layout_feature_get_name_ids_and_characters () |
|
|
|
|
&num_named_parameters, &first_param_id)) |
|
|
|
|
g_error ("Failed to get name ids"); |
|
|
|
|
|
|
|
|
|
g_assert (label_id == 256); |
|
|
|
|
g_assert (tooltip_id == 257); |
|
|
|
|
g_assert (sample_id == 258); |
|
|
|
|
g_assert (num_named_parameters == 2); |
|
|
|
|
g_assert (first_param_id == 259); |
|
|
|
|
g_assert_cmpint (label_id, ==, 256); |
|
|
|
|
g_assert_cmpint (tooltip_id, ==, 257); |
|
|
|
|
g_assert_cmpint (sample_id, ==, 258); |
|
|
|
|
g_assert_cmpint (num_named_parameters, ==, 2); |
|
|
|
|
g_assert_cmpint (first_param_id, ==, 259); |
|
|
|
|
|
|
|
|
|
hb_codepoint_t characters[100]; |
|
|
|
|
unsigned int char_count = 100; |
|
|
|
@ -66,10 +66,10 @@ test_ot_layout_feature_get_name_ids_and_characters () |
|
|
|
|
all_chars = hb_ot_layout_feature_get_characters (face, HB_OT_TAG_GSUB, feature_index, |
|
|
|
|
0, &char_count, characters); |
|
|
|
|
|
|
|
|
|
g_assert (all_chars == 2); |
|
|
|
|
g_assert (char_count == 2); |
|
|
|
|
g_assert (characters[0] == 10); |
|
|
|
|
g_assert (characters[1] == 24030); |
|
|
|
|
g_assert_cmpint (all_chars, ==, 2); |
|
|
|
|
g_assert_cmpint (char_count, ==, 2); |
|
|
|
|
g_assert_cmpint (characters[0], ==, 10); |
|
|
|
|
g_assert_cmpint (characters[1], ==, 24030); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int |
|
|
|
|