diff options
| author | Stephen Blott | 2016-10-02 14:11:24 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2016-10-02 14:11:24 +0100 | 
| commit | 3cabcc92adebabf7b5665fddc29c2fa3330ec000 (patch) | |
| tree | 7edff541d9ca51e8d61189bfcc5522bd6782d38e | |
| parent | 264c1e56505ae4c2f323752877696f7ab79ccdfe (diff) | |
| download | vimium-3cabcc92adebabf7b5665fddc29c2fa3330ec000.tar.bz2 | |
More key-sequance parser tests.
| -rw-r--r-- | tests/unit_tests/commands_test.coffee | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/tests/unit_tests/commands_test.coffee b/tests/unit_tests/commands_test.coffee index c8ded6a9..508e298b 100644 --- a/tests/unit_tests/commands_test.coffee +++ b/tests/unit_tests/commands_test.coffee @@ -18,6 +18,7 @@ context "Key mappings",    should "parse keys with modifiers", ->      @testKeySequence "<c-a>", "<c-a>", 1      @testKeySequence "<c-A>", "<c-A>", 1 +    @testKeySequence "<C-A>", "<c-A>", 1      @testKeySequence "<c-a><a-b>", "<c-a>/<a-b>", 2      @testKeySequence "<m-a>", "<m-a>", 1 @@ -45,6 +46,11 @@ context "Key mappings",      @testKeySequence "<<space>", "</<space>", 2      @testKeySequence "<C->>", "<c->>", 1 +  should "negative tests", -> +    # These should not be parsed as modifiers. +    @testKeySequence "<b-a>", "</b/-/a/>", 5 +    @testKeySequence "<c-@@>", "</c/-/@/@/>", 6 +  context "Validate commands and options",    should "have either noRepeat or repeatLimit, but not both", ->      # TODO(smblott) For this and each following test, is there a way to structure the tests such that the name | 
