[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup 357f037 045/184: Add test case:popup-tip(height)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup 357f037 045/184: Add test case:popup-tip(height) |
Date: |
Wed, 6 Oct 2021 00:01:03 -0400 (EDT) |
branch: elpa/popup
commit 357f037615c8bf4aa885493a6b6b1041e0a5dfd1
Author: yuuki arisawa <yuuki.ari@gmail.com>
Commit: yuuki arisawa <yuuki.ari@gmail.com>
Add test case:popup-tip(height)
---
tests/popup-test.el | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/tests/popup-test.el b/tests/popup-test.el
index 53ce80b..0fb85ec 100644
--- a/tests/popup-test.el
+++ b/tests/popup-test.el
@@ -251,3 +251,26 @@ HELP-DELAY is a delay of displaying helps."
(should (equal (car (popup-test-helper-points-to-columns points))
0))
)))))
+
+(ert-deftest popup-test-two-lines ()
+ (popup-test-with-temp-buffer
+ (let ((popup (popup-tip "Foo\nBar\nBaz" :nowait t :height 2)))
+ (with-current-buffer (popup-test-helper-get-overlays-buffer)
+ (let ((points (popup-test-helper-match-points '("Foo" "Bar" "Baz"))))
+ (should (equal points '(2 6 nil)))
+ (should (equal (popup-test-helper-points-to-columns points)
+ '(0 0 nil)))
+ (should (eq (line-number-at-pos (car points)) 2))
+ )))))
+
+(ert-deftest popup-test-two-lines-bottom ()
+ (popup-test-with-temp-buffer
+ (insert (make-string (- (window-body-height) 1) ?\n))
+ (let ((popup (popup-tip "Foo\nBar\nBaz" :nowait t :height 2)))
+ (with-current-buffer (popup-test-helper-get-overlays-buffer)
+ (let ((points (popup-test-helper-match-points '("Foo" "Bar" "Baz"))))
+ (should (equal (popup-test-helper-points-to-columns points)
+ '(0 0 nil)))
+ (should (eq (line-number-at-pos (car points))
+ (- (window-body-height) 2)))
+ )))))
- [nongnu] elpa/popup 4e8824e 051/184: Add some make rules for test., (continued)
- [nongnu] elpa/popup 4e8824e 051/184: Add some make rules for test., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup f2fc154 058/184: Add summary-face keyword argument to popup-create-line-string, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup b45aa2d 060/184: Handle summary-face in popup-draw, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e645eae 049/184: Add test case:popup-scroll-down, popup-scroll-up, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup ee5b4b0 034/184: Add test case when point is on the corner, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 1d692e4 066/184: Replace helper functions for some tests., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 25e2e7f 043/184: Merge pull request #17 from uk-ar/feature, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 9dcce09 024/184: Merge branch 'master' of github.com:auto-complete/popup-el, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e995ffa 030/184: Add check for columns of starting points., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8d7e57e 065/184: Replace popup-test-with-create-popup to popup-create, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 357f037 045/184: Add test case:popup-tip(height),
ELPA Syncer <=
- [nongnu] elpa/popup b8c1cb4 054/184: At least one space before summary, if possible, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 7533efe 078/184: Merge pull request #53 from auto-complete/fix-travis, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 64102c2 046/184: Add test case:popup-tip(scroll-bar, min-height), ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 487c0a8 109/184: add :initial-index parameter test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8719cd9 105/184: Merge pull request #71 from auto-complete/use-cask, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 1510820 100/184: activate isearch in cascade menu, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 58f55de 096/184: Merge pull request #62 from auto-complete/support-max-width, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup afeaed3 082/184: Merge branch 'master' into use-cl-lib, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 70c2583 093/184: Add 'nostrip' parameter explanation to docstring, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 69d5bf9 095/184: Support max-width for popup instance, ELPA Syncer, 2021/10/06