summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-04-26 23:47:58 +0200
committerDave Davenport <qball@gmpclient.org>2017-04-26 23:47:58 +0200
commitd3594e275e911a71361ea2a545fc4d3f1b1a686e (patch)
tree28807f255f3ff6ba21516f1512f01ab54adf7d14
parente16d8f755aca9cf9c3b6543231f142c71e515aaf (diff)
[Test] test configuration block in config.
-rw-r--r--test/theme-parser-test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c
index e5f13c89..30f7b17e 100644
--- a/test/theme-parser-test.c
+++ b/test/theme-parser-test.c
@@ -521,6 +521,17 @@ int main ( int argc, char ** argv )
}
{
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");
TASSERT ( error == 0 );
TASSERT ( rofi_theme != NULL );