diff options
| author | Jez Ng | 2012-09-09 16:46:12 -0400 | 
|---|---|---|
| committer | Jez Ng | 2012-09-09 16:47:35 -0400 | 
| commit | 44ed1848548d4c73c35c3302fc47ebfc8295dcae (patch) | |
| tree | 3df2f20c93ee7cea10b6a54aa5e31e4f0bd6edb5 /tests/unit_tests/commands_test.coffee | |
| parent | 8c2a65dfdf9c3b4e69bca15eb7705280758245c2 (diff) | |
| download | vimium-44ed1848548d4c73c35c3302fc47ebfc8295dcae.tar.bz2 | |
Add more tests, and remove old settings code.
Diffstat (limited to 'tests/unit_tests/commands_test.coffee')
| -rw-r--r-- | tests/unit_tests/commands_test.coffee | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/tests/unit_tests/commands_test.coffee b/tests/unit_tests/commands_test.coffee new file mode 100644 index 00000000..99e0e444 --- /dev/null +++ b/tests/unit_tests/commands_test.coffee @@ -0,0 +1,10 @@ +require "./test_helper.js" +{Commands} = require "../../background_scripts/commands.js" + +context "Key mappings", +  should "lowercase keys correctly", -> +    assert.equal (Commands.normalizeKey '<c-a>'), '<c-a>' +    assert.equal (Commands.normalizeKey '<C-a>'), '<c-a>' +    assert.equal (Commands.normalizeKey '<C-A>'), '<c-A>' +    assert.equal (Commands.normalizeKey '<F12>'), '<f12>' +    assert.equal (Commands.normalizeKey '<C-F12>'), '<c-f12>' | 
