From ed06688979cbed11ce1fd388acb042d30598036b Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 18 Jan 2015 17:31:03 +0000 Subject: Minor clean-up of the tests. Nicer syntax. And we don't need those braces. --- tests/dom_tests/dom_tests.coffee | 6 ++---- 1 file 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 -- cgit v1.2.3