         initialCharWidth = editor.getDefaultCharWidth()
 
         component.setFontFamily('sans-serif')
-        runSetImmediateCallbacks()
         expect(editor.getDefaultCharWidth()).toBe initialCharWidth
 
         wrapperView.show()


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

  beforeEach ->
    lineOverdrawMargin = 2

        wheelEvent = new WheelEvent('mousewheel', wheelDeltaX: 0, wheelDeltaY: 100) # goes nowhere, we're already at scrollTop 0
        Object.defineProperty(wheelEvent, 'target', get: -> lineNode)
        componentNode.dispatchEvent(wheelEvent)
        expect(hasSetImmediateCallbacks()).toBe false

        expect(component.mouseWheelScreenRow).toBe 0
        editor.insertText("hello")
