diff options
Diffstat (limited to 'tests/test-command.c')
-rw-r--r-- | tests/test-command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-command.c b/tests/test-command.c index b3c3d0c..2d91b64 100644 --- a/tests/test-command.c +++ b/tests/test-command.c @@ -351,6 +351,12 @@ test_toggle_string (void) { // and wrap to the first value when it reaches the end. parse_cmd_line("toggle useragent 'x' 'y'", NULL); g_assert_cmpstr("x", ==, uzbl.net.useragent); + + // user-defined variables can be toggled too. + parse_cmd_line("toggle new_variable 'x' 'y'", NULL); + gchar *value = get_var_value_string("new_variable"); + g_assert_cmpstr("x", ==, value); + g_free(value); } int |