diff options
| author | Stephen Blott | 2015-01-19 05:39:24 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-19 07:51:45 +0000 |
| commit | 26ff39d355f7d405eeb1b1394afbb677fa01e4a2 (patch) | |
| tree | ee684506a899b4c92de780f1f4afcfc77b5517f1 /lib/handler_stack.coffee | |
| parent | ed06688979cbed11ce1fd388acb042d30598036b (diff) | |
| download | vimium-26ff39d355f7d405eeb1b1394afbb677fa01e4a2.tar.bz2 | |
Rework DOM tests.
- Set up modes such that they can be re-initialised.
- Move initialisation of BadgeMode to general initialisation function.
- Add reset() method for handlerStack.
- Consistently use initializeModeState() in all tests' setup().
- Refactor focusInput tests.
- Add some more tests.
- Simplify some other tests.
Note: Clean-up of the inputFocus overlay now happens when the exit()
method is called in Mode.reset(). This eliminates most needs to
artificially bubble a keyboard event to clear the overlay.
Diffstat (limited to 'lib/handler_stack.coffee')
| -rw-r--r-- | lib/handler_stack.coffee | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/handler_stack.coffee b/lib/handler_stack.coffee index 76d835b7..b8049b81 100644 --- a/lib/handler_stack.coffee +++ b/lib/handler_stack.coffee @@ -95,5 +95,8 @@ class HandlerStack label ||= if result then "continue/truthy" else "suppress" console.log "#{@eventNumber}", type, handler._name, label + reset: -> + @stack = [] + root.HandlerStack = HandlerStack root.handlerStack = new HandlerStack() |
