aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-09-19 09:47:22 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-09-19 09:47:22 +0200
commit86df99cf27a6e833f175060288eb8cef9d0cb593 (patch)
treed27437be1e31df494e61282a5675b6b952b82612 /tests
parent0a216341c42744720990140a4ca1d42decab2ccd (diff)
deprecate insert/command mode, always_insert_mode, mode indicators, in favor of soon to be implemented EM replacements. uzbl-core now only knows if it should forward_keys to the webkitview or not
Diffstat (limited to 'tests')
-rw-r--r--tests/test-command.c4
-rw-r--r--tests/test-expand.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-command.c b/tests/test-command.c
index a752ca6..2a226b2 100644
--- a/tests/test-command.c
+++ b/tests/test-command.c
@@ -35,13 +35,13 @@ test_keycmd (void) {
/* the 'keycmd' command */
parse_command("keycmd", "insert", NULL);
- g_assert_cmpint(1, ==, uzbl.behave.insert_mode);
+ g_assert_cmpint(1, ==, uzbl.behave.forward_keys);
g_assert_cmpstr("", ==, uzbl.state.keycmd);
/* setting the keycmd variable directly, equivalent to the 'keycmd' comand */
set_var_value("keycmd", "command");
- g_assert_cmpint(0, ==, uzbl.behave.insert_mode);
+ g_assert_cmpint(0, ==, uzbl.behave.forward_keys);
g_assert_cmpstr("", ==, uzbl.state.keycmd);
}
diff --git a/tests/test-expand.c b/tests/test-expand.c
index 0ced1f4..f01e5c7 100644
--- a/tests/test-expand.c
+++ b/tests/test-expand.c
@@ -79,10 +79,10 @@ test_NAME (void) {
void
test_MODE (void) {
- set_var_value("insert_mode", "0");
+ set_var_value("forward_keys", "0");
g_assert_cmpstr(expand("@MODE", 0), ==, "C");
- set_var_value("insert_mode", "1");
+ set_var_value("forward_keys", "1");
g_assert_cmpstr(expand("@MODE", 0), ==, "I");
}