]> code.delx.au - gnu-emacs-elpa/blobdiff - test/frontends-tests.el
Work around http://debbugs.gnu.org/19553
[gnu-emacs-elpa] / test / frontends-tests.el
index 1d12b3c689500f36ae39a90f697ce00fe62fb986..a10f91461f2c6ef2a4e65640ef97c8a08a8091d7 100644 (file)
     (should (equal (company-buffer-lines (point-min) (point-max))
                    '("" "" "" "eee" "fff" "ggg")))))
 
+(ert-deftest company-buffer-lines-with-multiline-after-string-at-eob ()
+  :tags '(interactive)
+  (with-temp-buffer
+    (insert "a\nb\nc\n")
+    (let ((ov (make-overlay (point-max) (point-max) nil t t)))
+      (overlay-put ov 'after-string "~\n~\n~"))
+    (should (equal (company-buffer-lines (point-min) (point-max))
+                   '("a" "b" "c")))))
+
 (ert-deftest company-modify-line ()
   (let ((str "-*-foobar"))
     (should (equal-including-properties