     describe "when indent guides are enabled", ->
       beforeEach ->
         component.setShowIndentGuide(true)
-        runSetImmediateCallbacks()
 
       it "adds an 'indent-guide' class to spans comprising the leading whitespace", ->
         line1LeafNodes = getLeafNodes(component.lineNodeForScreenRow(1))


        hiddenParent.style.display = 'block'
        advanceClock(component.domPollingInterval)
        runSetImmediateCallbacks()

        expect(componentNode.querySelectorAll('.line').length).toBeGreaterThan 0



describe "EditorComponent", ->
  [contentNode, editor, wrapperView, wrapperNode, component, componentNode, verticalScrollbarNode, horizontalScrollbarNode] = []
  [lineHeightInPixels, charWidth, delayAnimationFrames, nextAnimationFrame, runSetImmediateCallbacks, hasSetImmediateCallbacks, lineOverdrawMargin] = []

  beforeEach ->
    lineOverdrawMargin = 2
