From b327b2147a28a2a81cf591875d3f4aee2aa971d4 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Thu, 15 Sep 2011 23:14:52 +0000 Subject: convert show_status to a getter --- tests/test-command.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test-command.c b/tests/test-command.c index 07f053c..db08097 100644 --- a/tests/test-command.c +++ b/tests/test-command.c @@ -25,6 +25,7 @@ #include #include #include +#include extern UzblCore uzbl; @@ -170,7 +171,7 @@ test_set_variable (struct EventFixture *ef, const void *data) { ASSERT_EVENT(ef, "VARIABLE_SET zoom_level float 0.25"); - g_assert_cmpfloat(0.25, ==, uzbl.behave.zoom_level); + g_assert_cmpfloat(0.25, ==, get_var_value_float("zoom_level")); /* set a constant int (nothing should happen) */ int old_major = uzbl.info.webkit_major; @@ -248,15 +249,16 @@ test_scroll (void) { void test_toggle_status (void) { - g_assert(!uzbl.behave.show_status); + /* status bar is not shown (for whatever reason) */ + g_assert(!get_show_status()); /* status bar can be toggled on */ parse_cmd_line("toggle_status", NULL); - g_assert(uzbl.behave.show_status); + g_assert(get_show_status()); /* status bar can be toggled back off */ parse_cmd_line("toggle_status", NULL); - g_assert(!uzbl.behave.show_status); + g_assert(!get_show_status()); } void -- cgit v1.2.3