Evas tests: Adedd a textblock test for the last bug fix.

SVN revision: 61639
This commit is contained in:
Tom Hacohen 2011-07-24 08:50:46 +00:00
parent 53fc933312
commit 123e491079
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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