forked from enlightenment/efl
Evas tests: Adedd a textblock test for the last bug fix.
SVN revision: 61639
This commit is contained in:
parent
53fc933312
commit
123e491079
|
@ -9060,6 +9060,12 @@ _evas_textblock_check_item_node_link(Evas_Object *obj)
|
|||
}
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
_evas_textblock_format_offset_get(const Evas_Object_Textblock_Node_Format *n)
|
||||
{
|
||||
return n->offset;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
/* Functions defined in evas_object_textblock.c */
|
||||
EAPI Eina_Bool
|
||||
_evas_textblock_check_item_node_link(Evas_Object *obj);
|
||||
EAPI int
|
||||
_evas_textblock_format_offset_get(const Evas_Object_Textblock_Node_Format *n);
|
||||
/* end of functions defined in evas_object_textblock.c */
|
||||
|
||||
|
||||
|
@ -759,6 +761,14 @@ START_TEST(evas_textblock_format_removal)
|
|||
fnode = evas_textblock_node_format_first_get(tb);
|
||||
fail_if (fnode);
|
||||
|
||||
/* Verify fmt position and REP_CHAR positions are the same */
|
||||
evas_object_textblock_text_markup_set(tb,
|
||||
"This is<ps>an <item absize=93x152 vsize=ascent></>a.");
|
||||
evas_textblock_cursor_pos_set(cur, 7);
|
||||
evas_textblock_cursor_char_delete(cur);
|
||||
fnode = evas_textblock_node_format_first_get(tb);
|
||||
fail_if(_evas_textblock_format_offset_get(fnode) != 10);
|
||||
|
||||
END_TB_TEST();
|
||||
}
|
||||
END_TEST
|
||||
|
|
Loading…
Reference in New Issue