diff options
| author | Stephen Blott | 2015-01-18 17:32:31 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-18 17:32:31 +0000 |
| commit | 7ed25b7a757a0b3d8d8cf14c60fd8e0e0d237835 (patch) | |
| tree | 8f3121b3e93f831037833a7d80dd925fc96fca22 /tests | |
| parent | d8f2446261887cb9affc50caf27b5793f0339edc (diff) | |
| parent | ed06688979cbed11ce1fd388acb042d30598036b (diff) | |
| download | vimium-7ed25b7a757a0b3d8d8cf14c60fd8e0e0d237835.tar.bz2 | |
Merge branch 'master' into focus-input-with-memory
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 8cb0c41a..f67ebc88 100644 --- a/tests/dom_tests/dom_tests.coffee +++ b/tests/dom_tests/dom_tests.coffee @@ -194,8 +194,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 @@ -204,13 +202,13 @@ 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() # deactivate the tabbing mode and its overlays handlerStack.bubbleEvent 'keydown', mockKeyboardEvent("A") focusInput 100 - handlerStack.bubbleEvent 'focus', { target: document. activeElement } + handlerStack.bubbleEvent 'focus', target: document. activeElement assert.isTrue InsertMode.permanentInstance.isActive() # deactivate the tabbing mode and its overlays handlerStack.bubbleEvent 'keydown', mockKeyboardEvent("A") |
