         gutterWidth = componentNode.querySelector('.gutter').offsetWidth
         componentNode.style.width = gutterWidth + 14 * charWidth + wrapperNode.getVerticalScrollbarWidth() + 'px'
         atom.views.performDocumentPoll()
-
-      waitsForNextDOMUpdate()
+        waitsForNextDOMUpdate()
 
       runs ->
         expect(componentNode.querySelector('.line').textContent).toBe "var quicksort "

        waitsForNextDOMUpdate()
        runs ->
          wrapperNode.setScrollBottom(wrapperNode.getScrollHeight())
        waitsForNextDOMUpdate()
        runs ->
          editor.moveUp()
        waitsForNextDOMUpdate()
        runs ->
          expect(wrapperNode.getScrollBottom()).toBe wrapperNode.getScrollHeight()
          editor.moveUp()
        waitsForNextDOMUpdate()
        runs ->
          expect(wrapperNode.getScrollTop()).toBe 7 * 10
          editor.moveUp()
        waitsForNextDOMUpdate()
        runs ->
          expect(wrapperNode.getScrollTop()).toBe 6 * 10



    it "removes decorations when their marker is invalidated", ->
      editor.getBuffer().insert([3, 2], 'n')
      waitsForNextDOMUpdate()

      runs ->
