aboutsummaryrefslogtreecommitdiffstats
path: root/lib/handler_stack.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-19 13:42:31 +0000
committerStephen Blott2015-01-20 06:50:08 +0000
commit2cb0079bde5461490e0ae09286b2b3c75056fe1a (patch)
treebd9b910ba34826709cd9933e52d75fb748dc0a00 /lib/handler_stack.coffee
parent97e61e29d59b9557fe1fb8d7ae1a34be1d47fcc1 (diff)
downloadvimium-2cb0079bde5461490e0ae09286b2b3c75056fe1a.tar.bz2
Rework DOM tests (integrate keyboard-event handling).
This uses phantomjs to generate keyboard events. So the events are propagated through the regular event listeners. So we're testing the full keyboard-event flow.
Diffstat (limited to 'lib/handler_stack.coffee')
-rw-r--r--lib/handler_stack.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handler_stack.coffee b/lib/handler_stack.coffee
index b8049b81..3d635005 100644
--- a/lib/handler_stack.coffee
+++ b/lib/handler_stack.coffee
@@ -1,7 +1,6 @@
root = exports ? window
class HandlerStack
-
constructor: ->
@debug = false
@eventNumber = 0
@@ -95,6 +94,7 @@ class HandlerStack
label ||= if result then "continue/truthy" else "suppress"
console.log "#{@eventNumber}", type, handler._name, label
+ # For tests only.
reset: ->
@stack = []