           expect(editor.getText()).toBe 'something'
 
     describe "when autocomplete-plus.suggestionListFollows is 'Word'", ->
+      requiresGutter = ->
+        parentTag = editorView.querySelector('.autocomplete-plus').parentNode.tagName
+        parentTag is 'ATOM-TEXT-EDITOR'
+
+      pixelLeftForBufferPosition = (bufferPosition) ->
+        left = editorView.pixelPositionForBufferPosition(bufferPosition).left
+        left = gutterWidth + left if requiresGutter()
+        "#{left}px"
+
       [gutterWidth] = []
       beforeEach ->
         gutterWidth = editorView.shadowRoot.querySelector('.gutter').offsetWidth

          waitForAutocomplete()

        runs ->
          left = editorView.pixelPositionForBufferPosition([0, 2]).left
          expect(overlayElement.style.left).toBe "#{gutterWidth + left}px"

    describe 'accepting suggestions', ->
      beforeEach ->

          overlayElement = editorView.querySelector('.autocomplete-plus')

          expect(overlayElement).toExist()
          expect(overlayElement.style.left).toBe pixelLeftForBufferPosition([0, 2])

      it "displays the suggestion list with a negative margin to align the prefix with the word-container", ->
        spyOn(provider, 'getSuggestions').andCallFake (options) ->
