aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2011-09-15 23:14:52 +0000
committerGravatar Brendan Taylor <whateley@gmail.com>2011-09-17 17:04:04 +0000
commitb327b2147a28a2a81cf591875d3f4aee2aa971d4 (patch)
tree18ebadcef84b6d7ba838f1b1fc369fc63a8e459b /tests
parent65ace942fdabfd6116163a21eec7cd7bbd3cbcb1 (diff)
convert show_status to a getter
Diffstat (limited to 'tests')
-rw-r--r--tests/test-command.c10
1 files changed, 6 insertions, 4 deletions
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 <src/uzbl-core.h>
#include <src/config.h>
#include <src/type.h>
+#include <src/variables.h>
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