forked from enlightenment/edi
Fix the tests to work with widget improvements
This commit is contained in:
parent
2b1afc7179
commit
b14eabb679
|
@ -26,6 +26,9 @@ elm_code_widget_text_left_gutter_width_get(Elm_Code_Widget *widget)
|
|||
Elm_Code_Widget_Data *pd;
|
||||
int width = 1; // the status icon, for now
|
||||
|
||||
if (!widget)
|
||||
return width;
|
||||
|
||||
pd = eo_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
|
||||
|
||||
if (pd->show_line_numbers)
|
||||
|
|
|
@ -29,7 +29,7 @@ START_TEST (elm_code_widget_token_render_simple_test)
|
|||
elm_code_file_line_token_add(file, 1, 6+1, 17+1, ELM_CODE_TOKEN_TYPE_COMMENT);
|
||||
elm_code_file_line_token_add(file, 1, 21+1, 22+1, ELM_CODE_TOKEN_TYPE_COMMENT);
|
||||
|
||||
_elm_code_widget_fill_line_tokens(cells, length+1, line);
|
||||
_elm_code_widget_fill_line_tokens(NULL, cells, length+1, line);
|
||||
_assert_cell_type(cells[1], ELM_CODE_TOKEN_TYPE_DEFAULT, 1);
|
||||
_assert_cell_type(cells[4], ELM_CODE_TOKEN_TYPE_DEFAULT, 4);
|
||||
_assert_cell_type(cells[6], ELM_CODE_TOKEN_TYPE_DEFAULT, 6);
|
||||
|
|
Loading…
Reference in New Issue