aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-07-29 18:27:45 -0700
committerJoe Wilm <joe@jwilm.com>2016-07-29 18:27:45 -0700
commit6d4e10e2b94e8257d76907d7e0b8ad0ab133fc43 (patch)
tree1a8df1128bab7547b44d29b289e7e766d26cebae /src/input.rs
parent90e343b36d9c18a627f8868022611cdb2d342ef0 (diff)
downloadalacritty-6d4e10e2b94e8257d76907d7e0b8ad0ab133fc43.tar.gz
alacritty-6d4e10e2b94e8257d76907d7e0b8ad0ab133fc43.zip
Add test for input
Added a test while debugging arrow keys, no reason to delete it.
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index ecd5fdef..3dba1a64 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -449,4 +449,12 @@ mod tests {
mode: mode::NONE,
mods: modifier::NONE
}
+
+ test_process_binding! {
+ name: process_binding_appcursormode_appkeypadmode_nomod_require_appcursor,
+ binding: Binding { mods: modifier::ANY, send: "\x1bOD", mode: mode::APP_CURSOR, notmode: mode::NONE },
+ expect: Some(String::from("\x1bOD")),
+ mode: mode::APP_CURSOR | mode::APP_KEYPAD,
+ mods: modifier::NONE
+ }
}