 
         runs ->
           editor.setTextInBufferRange([[10, 0], [11, 0]], "\r\n", normalizeLineEndings: false)
-
-        waitsForNextDOMUpdate()
+          waitsForNextDOMUpdate()
 
         runs ->
           expect(component.lineNodeForScreenRow(10).innerHTML).toBe '<span class="indent-guide"><span class="invisible-character">C</span><span class="invisible-character">E</span></span>'
 
           editor.setTabLength(3)
-
-        waitsForNextDOMUpdate()
+          waitsForNextDOMUpdate()
 
         runs ->
           expect(component.lineNodeForScreenRow(10).innerHTML).toBe '<span class="indent-guide"><span class="invisible-character">C</span><span class="invisible-character">E</span> </span>'
 
           editor.setTabLength(1)
-
-        waitsForNextDOMUpdate()
+          waitsForNextDOMUpdate()
 
         runs ->
           expect(component.lineNodeForScreenRow(10).innerHTML).toBe '<span class="indent-guide"><span class="invisible-character">C</span></span><span class="indent-guide"><span class="invisible-character">E</span></span>'
 
           editor.setTextInBufferRange([[9, 0], [9, Infinity]], ' ')
           editor.setTextInBufferRange([[11, 0], [11, Infinity]], ' ')
-
-        waitsForNextDOMUpdate()
+          waitsForNextDOMUpdate()
 
         runs ->
           expect(component.lineNodeForScreenRow(10).innerHTML).toBe '<span class="indent-guide"><span class="invisible-character">C</span></span><span class="invisible-character">E</span>'

        expect(componentNode.querySelector('.test-highlight')).toBeTruthy()

        decoration.setProperties(type: 'highlight', class: 'new-test-highlight')

        waitsForNextDOMUpdate()

        runs ->

    describe "when the decoration's 'onlyEmpty' property is true", ->
      it "only applies the decoration when its marker is empty", ->
        editor.decorateMarker(marker, type: ['line-number', 'line'], class: 'only-empty', onlyEmpty: true)
        waitsForNextDOMUpdate()

        runs ->
