 
       it "when broken by a non-word character, the suggestion list is positioned at the beginning of the new word", ->
         overlayElement = null
-        editor.insertText('x')
+        editor.insertText('xxxxxxxxxxx')
         editor.insertText(' abc')
         editor.insertText('d')
         waitForAutocomplete()

          waitForAutocomplete()

        runs ->
          expect(overlayElement.style.left).toBe pixelLeftForBufferPosition([0, 2])

    describe 'accepting suggestions', ->
      beforeEach ->

        atom.config.set('autocomplete-plus.suggestionListFollows', 'Word')

      it "opens to the correct position, and correctly closes on cancel", ->
        editor.insertText('xxxxxxxxxxx ab')
        triggerAutocompletion(editor, false, 'c')

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

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

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