[Test] test configuration block in config.

This commit is contained in:
Dave Davenport 2017-04-26 23:47:58 +02:00
parent e16d8f755a
commit d3594e275e
1 changed files with 11 additions and 0 deletions

View File

@ -519,6 +519,17 @@ int main ( int argc, char ** argv )
rofi_theme_free ( rofi_theme );
rofi_theme = NULL;
}
{
rofi_theme = NULL;
error = 0;
rofi_theme_parse_string ( "configuration { font: \"blaat€\"; y-offset: 4; }");
TASSERT ( error == 0 );
TASSERT ( g_utf8_collate ( config.font, "blaat€" ) == 0 );
TASSERT ( config.y_offset == 4 );
rofi_theme_free ( rofi_theme );
rofi_theme = NULL;
}
{
rofi_theme = NULL;
rofi_theme_parse_file ("/dev/null");