       it "updates .indentGuidesVisible based on the grammar's root scope", ->
         atom.config.set('editor.showIndentGuide', true, scopeSelector: ".source.js")
 
-        presenter = new TextEditorPresenter(model: editor, clientHeight: 25, clientWidth: 50, scrollTop: 0, baseCharacterWidth: 10, lineHeight: 10, lineOverdrawMargin: 0)
+        presenter = new TextEditorPresenter(model: editor)
         expect(presenter.state.content.indentGuidesVisible).toBe false
 
         waitsForPromise -> atom.packages.activatePackage('language-javascript')

        editor.decorateMarker(editor.markBufferRange([[4, 0], [6, 0]]), type: 'line', class: 'a')
        editor.decorateMarker(editor.markBufferRange([[5, 0], [5, 0]]), type: 'line', class: 'b')

        presenter = new TextEditorPresenter(model: editor, clientHeight: 130, clientWidth: 50, scrollTop: 0, baseCharacterWidth: 10, lineHeight: 10, lineOverdrawMargin: 0)

        expect(lineStateForScreenRow(presenter, 3).decorationClasses).toBeNull()
        expect(lineStateForScreenRow(presenter, 4).decorationClasses).toEqual ['a']


      it "includes the .endOfLineInvisibles in the line state if the editor.showInvisibles config option is true", ->
        editor.setText("hello\nworld\r\n")
        presenter = new TextEditorPresenter(model: editor, clientHeight: 25, scrollTop: 0, lineHeight: 10, lineOverdrawMargin: 0)
        expect(lineStateForScreenRow(presenter, 0).endOfLineInvisibles).toBeNull()
        expect(lineStateForScreenRow(presenter, 1).endOfLineInvisibles).toBeNull()

        atom.config.set('editor.showInvisibles', true)
        presenter = new TextEditorPresenter(model: editor, clientHeight: 25, scrollTop: 0, lineHeight: 10, lineOverdrawMargin: 0)
        expect(lineStateForScreenRow(presenter, 0).endOfLineInvisibles).toEqual [atom.config.get('editor.invisibles.eol')]
        expect(lineStateForScreenRow(presenter, 1).endOfLineInvisibles).toEqual [atom.config.get('editor.invisibles.cr'), atom.config.get('editor.invisibles.eol')]

