diff options
| author | Stephen Blott | 2016-02-29 06:48:27 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-03-05 05:40:11 +0000 | 
| commit | 29708b3297a645966f7943682f8f7b8c2a332297 (patch) | |
| tree | 96d17d96eca75bea538d204d18fadc500870f1af /tests/dom_tests | |
| parent | e4193e2752ee7132ff16a7ba977857f70df2946b (diff) | |
| download | vimium-29708b3297a645966f7943682f8f7b8c2a332297.tar.bz2 | |
Key bindings; refactor passKeys distribution.
It makes more sense to pass the passKeys directly to normalMode.  So, do
so, and remove the trackState mode option - which isn't otherwise being
used.
Diffstat (limited to 'tests/dom_tests')
| -rw-r--r-- | tests/dom_tests/dom_tests.coffee | 11 | 
1 files changed, 1 insertions, 10 deletions
| diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee index ee61aba9..b5b91f42 100644 --- a/tests/dom_tests/dom_tests.coffee +++ b/tests/dom_tests/dom_tests.coffee @@ -25,9 +25,7 @@ initializeModeState = ->    Mode.reset()    handlerStack.reset()    initializeModes keyMapping: {m: {}, p: {}, z: {p: {}}} -  handlerStack.bubbleEvent "registerStateChange", -    enabled: true -    passKeys: "p" +  normalMode.setPassKeys "p"  # Tell Settings that it's been loaded.  Settings.isLoaded = true @@ -494,13 +492,6 @@ context "Mode utilities",      element.blur()      assert.isTrue test.modeIsActive -  should "register state change", -> -    test = new Mode trackState: true -    handlerStack.bubbleEvent "registerStateChange", { enabled: "one", passKeys: "two" } - -    assert.isTrue test.enabled == "one" -    assert.isTrue test.passKeys == "two" -  context "PostFindMode",    setup ->      initializeModeState() | 
