mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05:00
[Tests] Fix tests for theme-parser.
This commit is contained in:
parent
847d2e82a0
commit
5312efb310
1 changed files with 4 additions and 2 deletions
|
@ -162,9 +162,11 @@ START_TEST (test_core_error_root )
|
||||||
ck_assert_ptr_null ( rofi_theme->widgets );
|
ck_assert_ptr_null ( rofi_theme->widgets );
|
||||||
ck_assert_ptr_null ( rofi_theme->properties );
|
ck_assert_ptr_null ( rofi_theme->properties );
|
||||||
ck_assert_ptr_null ( rofi_theme->parent );
|
ck_assert_ptr_null ( rofi_theme->parent );
|
||||||
|
const char *error_str = "<big><b>Error while parsing theme:</b></big> <i>Blaat</i>\n"\
|
||||||
|
" Parser error: <span size=\"smaller\" style=\"italic\">syntax error, unexpected end of file, expecting "bracket open ('{')" or "Selector separator (',')"</span>\n"\
|
||||||
|
" Location: line 1 column 6 to line 1 column 6\n";
|
||||||
|
ck_assert_str_eq ( error_msg->str, error_str );
|
||||||
|
|
||||||
ck_assert_str_eq ( error_msg->str, "<big><b>Error while parsing theme:</b></big> <i>Blaat</i>\n"\
|
|
||||||
"\tParser error: <span size=\"smaller\" style=\"italic\">syntax error, unexpected error from file parser, expecting end of file or "Element section ('# {name} { ... }')" or "Default settings section ( '* { ... }')" or Configuration block</span>\n Location: line 1 column 1 to line 1 column 2\n");
|
|
||||||
|
|
||||||
g_string_free ( error_msg, TRUE );
|
g_string_free ( error_msg, TRUE );
|
||||||
error_msg = NULL;
|
error_msg = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue