diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dom_tests/dom_tests.coffee | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee index c73e0885..33177c59 100644 --- a/tests/dom_tests/dom_tests.coffee +++ b/tests/dom_tests/dom_tests.coffee @@ -192,8 +192,6 @@ context "Input focus", should "focus the right element", -> focusInput 1 assert.equal "first", document.activeElement.id - # deactivate the tabbing mode and its overlays - handlerStack.bubbleEvent 'keydown', mockKeyboardEvent("A") focusInput 100 assert.equal "third", document.activeElement.id @@ -202,11 +200,11 @@ context "Input focus", # This is the same as above, but also verifies that focusInput activates insert mode. should "activate insert mode", -> focusInput 1 - handlerStack.bubbleEvent 'focus', { target: document.activeElement } + handlerStack.bubbleEvent 'focus', target: document.activeElement assert.isTrue InsertMode.permanentInstance.isActive() focusInput 100 - handlerStack.bubbleEvent 'focus', { target: document. activeElement } + handlerStack.bubbleEvent 'focus', target: document. activeElement assert.isTrue InsertMode.permanentInstance.isActive() # TODO: these find prev/next link tests could be refactored into unit tests which invoke a function which has |
