diff options
| author | Stephen Blott | 2015-01-18 17:31:03 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2015-01-18 17:31:03 +0000 | 
| commit | ed06688979cbed11ce1fd388acb042d30598036b (patch) | |
| tree | 26f403d8b1b0ffdfeabf063d2cdb7e923cdd41c5 /tests/dom_tests | |
| parent | 520060d69cff5f7a14e9d3fc2b4480a827110dff (diff) | |
| download | vimium-ed06688979cbed11ce1fd388acb042d30598036b.tar.bz2 | |
Minor clean-up of the tests.
Nicer syntax.
And we don't need those braces.
Diffstat (limited to 'tests/dom_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  | 
