aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorStephen Blott2016-02-28 14:01:16 +0000
committerStephen Blott2016-03-05 05:38:30 +0000
commit520b63cb1d64fb5a293988122007bd05bacc49db (patch)
treef3fd0d50edb493e24a543e6627bcd9c975e82c23 /tests/unit_tests
parentcf7a03dc26415528bc690147ba72c08e67dd65c8 (diff)
downloadvimium-520b63cb1d64fb5a293988122007bd05bacc49db.tar.bz2
Key bindings; fix tests...
... and fix two bugs: - not suppressing keyup event after keyChar matched in keydown. - we cannot check the passKeys keyChar in keyup because the key state has changed; so we track what the next keyup response should be.
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/commands_test.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/commands_test.coffee b/tests/unit_tests/commands_test.coffee
index 45cb4cf4..f501a960 100644
--- a/tests/unit_tests/commands_test.coffee
+++ b/tests/unit_tests/commands_test.coffee
@@ -1,6 +1,6 @@
require "./test_helper.js"
extend global, require "./test_chrome_stubs.js"
-global.Settings = {postUpdateHooks: {}}
+global.Settings = {postUpdateHooks: {}, get: (-> ""), set: ->}
{Commands} = require "../../background_scripts/commands.js"
context "Key mappings",