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:
Andy Williams 2016-06-06 14:14:24 +01:00 committed by Tom Hacohen
parent 80ca479916
commit 05f0134da4
2 changed files with 10 additions and 7 deletions

View File

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

View File

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