forked from enlightenment/efl
elementary_code: Fix test failures post-merge
Looks like some were legitimate failures that were not being caught in the previous setup
This commit is contained in:
parent
80ca479916
commit
05f0134da4
|
@ -47,7 +47,7 @@ START_TEST (elm_code_parse_hook_file_test)
|
|||
{
|
||||
Elm_Code *code;
|
||||
Elm_Code_File *file;
|
||||
char *path = TESTS_SRC_DIR "testfile.txt";
|
||||
char *path = TESTS_SRC_DIR "/testfile.txt";
|
||||
|
||||
line_calls = 0;
|
||||
file_calls = 0;
|
||||
|
|
|
@ -339,6 +339,7 @@ START_TEST (elm_code_test_widget_selection_delete_twoline)
|
|||
Elm_Code_Widget *widget;
|
||||
Evas_Object *win;
|
||||
const char *text;
|
||||
unsigned int length;
|
||||
|
||||
elm_init(1, NULL);
|
||||
code = elm_code_create();
|
||||
|
@ -358,8 +359,8 @@ START_TEST (elm_code_test_widget_selection_delete_twoline)
|
|||
elm_code_widget_selection_delete(widget);
|
||||
|
||||
line = elm_code_file_line_get(file, 1);
|
||||
text = elm_code_line_text_get(line, NULL);
|
||||
ck_assert_str_eq("teXT", text);
|
||||
text = elm_code_line_text_get(line, &length);
|
||||
ck_assert_strn_eq("teXT", text, length);
|
||||
ck_assert_int_eq(1, elm_code_file_lines_get(file));
|
||||
|
||||
elm_code_free(code);
|
||||
|
@ -411,6 +412,7 @@ START_TEST (elm_code_test_widget_selection_delete_multiline)
|
|||
Elm_Code_Widget *widget;
|
||||
Evas_Object *win;
|
||||
const char *text;
|
||||
unsigned int length;
|
||||
|
||||
elm_init(1, NULL);
|
||||
code = elm_code_create();
|
||||
|
@ -431,8 +433,8 @@ START_TEST (elm_code_test_widget_selection_delete_multiline)
|
|||
elm_code_widget_selection_delete(widget);
|
||||
|
||||
line = elm_code_file_line_get(file, 1);
|
||||
text = elm_code_line_text_get(line, NULL);
|
||||
ck_assert_str_eq("teXT", text);
|
||||
text = elm_code_line_text_get(line, &length);
|
||||
ck_assert_strn_eq("teXT", text, length);
|
||||
ck_assert_int_eq(1, elm_code_file_lines_get(file));
|
||||
|
||||
elm_code_free(code);
|
||||
|
@ -448,6 +450,7 @@ START_TEST (elm_code_test_widget_selection_reverse_delete_multiline)
|
|||
Elm_Code_Widget *widget;
|
||||
Evas_Object *win;
|
||||
const char *text;
|
||||
unsigned int length;
|
||||
|
||||
elm_init(1, NULL);
|
||||
code = elm_code_create();
|
||||
|
@ -468,8 +471,8 @@ START_TEST (elm_code_test_widget_selection_reverse_delete_multiline)
|
|||
elm_code_widget_selection_delete(widget);
|
||||
|
||||
line = elm_code_file_line_get(file, 1);
|
||||
text = elm_code_line_text_get(line, NULL);
|
||||
ck_assert_str_eq("teXT", text);
|
||||
text = elm_code_line_text_get(line, &length);
|
||||
ck_assert_strn_eq("teXT", text, length);
|
||||
ck_assert_int_eq(1, elm_code_file_lines_get(file));
|
||||
|
||||
elm_code_free(code);
|
||||
|
|
Loading…
Reference in New Issue