[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company 5c5645ee7a 2/3: add test for company-column wit
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company 5c5645ee7a 2/3: add test for company-column with RTL |
Date: |
Fri, 30 Jun 2023 21:57:29 -0400 (EDT) |
branch: externals/company
commit 5c5645ee7af5e193f8ba16809b291d0649d8c97b
Author: Mahmoud Nagy <mnagy1312@tutanota.com>
Commit: Mahmoud Nagy <mnagy1312@tutanota.com>
add test for company-column with RTL
---
test/frontends-tests.el | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/test/frontends-tests.el b/test/frontends-tests.el
index 9a0a355f9c..a824dbd903 100644
--- a/test/frontends-tests.el
+++ b/test/frontends-tests.el
@@ -59,6 +59,22 @@
(should (string= (overlay-get ov 'company-display)
" 123 \nc 45 c\nddd\n")))))))
+(ert-deftest company-pseudo-tooltip-show-at-point-RTL ()
+ :tags '(interactive)
+ (with-temp-buffer
+ (save-window-excursion
+ (set-window-buffer nil (current-buffer))
+ (setq bidi-display-reordering t)
+ (setq bidi-paragraph-direction 'right-to-left)
+ (insert "انا مثال للكتابة بالعربية")
+ (search-backward "مثال")
+ (let ((company-candidates-length 2)
+ (company-candidates '("123" "45"))
+ (company-backend 'ignore))
+ (company-pseudo-tooltip-show-at-point (point) 0)
+ (let ((ov company-pseudo-tooltip-overlay))
+ (should (eq (overlay-get ov 'company-column) 5)))))))
+
(ert-deftest company-pseudo-tooltip-edit-updates-width ()
:tags '(interactive)
(with-temp-buffer