         runs ->
           expect(editor.getLastSelection().isReversed()).toBe true
           gutterNode.dispatchEvent(buildMouseEvent('mousemove', clientCoordinatesForScreenRowInGutter(6)))
-
-        waitsForAnimationFrame()
+          waitsForAnimationFrame()
 
         runs ->
           expect(editor.getLastSelection().isReversed()).toBe false

          wheelEvent = new WheelEvent('mousewheel', wheelDeltaX: 10, wheelDeltaY: 0)
          Object.defineProperty(wheelEvent, 'target', get: -> lineNode)
          componentNode.dispatchEvent(wheelEvent)

        waitsForAnimationFrame()

        runs ->
          expect(component.presenter.mouseWheelScreenRow).toBe null


          linesNode.dispatchEvent(buildMouseEvent('mousedown', clientCoordinatesForScreenPosition([2, 4]), which: 1))
          linesNode.dispatchEvent(buildMouseEvent('mousemove', clientCoordinatesForScreenPosition([5, 4]), which: 1))
          waitsForAnimationFrame()

        runs ->
          expect(editor.getSelectedScreenRange()).toEqual [[2, 4], [5, 4]]

          editor.delete()
          waitsForAnimationFrame()

        runs ->
          expect(editor.getSelectedScreenRange()).toEqual [[2, 4], [2, 4]]
