diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-10-22 13:20:29 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-10-22 13:20:29 +0200 |
commit | 5312efb3108ffe89e52e3276c42df3a7ea02b5e9 (patch) | |
tree | 324152def8ffa64230ef01510b3d59413fdcae5c /test | |
parent | 847d2e82a045fbafbe42da9013f3623542cd42e4 (diff) |
[Tests] Fix tests for theme-parser.
Diffstat (limited to 'test')
-rw-r--r-- | test/theme-parser-test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c index 316f7405..cb38fac0 100644 --- a/test/theme-parser-test.c +++ b/test/theme-parser-test.c @@ -162,9 +162,11 @@ START_TEST (test_core_error_root ) ck_assert_ptr_null ( rofi_theme->widgets ); ck_assert_ptr_null ( rofi_theme->properties ); 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 ); error_msg = NULL; |