diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-09-13 20:50:59 +0000 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-09-13 20:50:59 +0000 |
commit | 809c4a5a219c3d5262fb6035c048ff70411cd37e (patch) | |
tree | 5ff457e62afb1d882f62b0f79b4b758289099af4 /tests | |
parent | 9f19ab832505ffd721cd466eba1a479ad4ff7cd4 (diff) | |
parent | e18b7eae54c0b62d93fa1f3c0596d45122a04541 (diff) |
Merge remote-tracking branch 'keis/event-format' into experimental
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-command.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test-command.c b/tests/test-command.c index 0f0f3c1..631f8c4 100644 --- a/tests/test-command.c +++ b/tests/test-command.c @@ -163,15 +163,12 @@ test_set_variable (struct EventFixture *ef, const void *data) { /* set a float */ /* we have to be careful about locales here */ - GString *cmd, *ev; + GString *cmd; cmd = g_string_new("set zoom_level = "); g_string_append_printf(cmd, "%f", 0.25); parse_cmd_line(g_string_free(cmd, FALSE), NULL); - ev = g_string_new("EVENT [" INSTANCE_NAME "] VARIABLE_SET zoom_level float "); - g_string_append_printf(ev, "%.2f\n", 0.25); - read_event(ef); - g_assert_cmpstr(g_string_free(ev, FALSE), ==, ef->event_buffer); + ASSERT_EVENT(ef, "VARIABLE_SET zoom_level float 0.25"); g_assert_cmpfloat(0.25, ==, uzbl.behave.zoom_level); |