[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup fd8a372 039/184: Remove unused code.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup fd8a372 039/184: Remove unused code. |
Date: |
Wed, 6 Oct 2021 00:01:02 -0400 (EDT) |
branch: elpa/popup
commit fd8a372d032d8c54f738b981666939a9401d49f8
Author: yuuki arisawa <yuuki.ari@gmail.com>
Commit: yuuki arisawa <yuuki.ari@gmail.com>
Remove unused code.
---
tests/popup-test.el | 42 ++++++++++++++++++------------------------
1 file changed, 18 insertions(+), 24 deletions(-)
diff --git a/tests/popup-test.el b/tests/popup-test.el
index 9344944..9c1d5c7 100644
--- a/tests/popup-test.el
+++ b/tests/popup-test.el
@@ -4,8 +4,6 @@
;; for "every" function
(require 'cl)
-(set-default 'truncate-lines t)
-
(when (< (frame-width) (length "long long long long line"))
(set-frame-size (selected-frame) 80 35))
@@ -127,7 +125,7 @@ into real text. Return *text* buffer"
))
(ert-deftest popup-test-tip ()
- (popup-test-with-common-setup
+ (popup-test-with-temp-buffer
(popup-tip
"Start isearch on POPUP. This function is synchronized, meaning
event loop waits for quiting of isearch.
@@ -165,42 +163,38 @@ HELP-DELAY is a delay of displaying helps."
(should (every #'identity points))
(should (equal (popup-test-helper-points-to-columns points)
'(1 1 1)))
- (should (eq (popup-test-helper-same-all-p
- (popup-test-helper-points-to-column points)) 1)))
+ )
))))
(ert-deftest popup-test-folding-long-line-right-top ()
(popup-test-with-temp-buffer
;; To use window-width because Emacs 23 does not have window-body-width
(insert (make-string (- (window-width) 3) ? ))
- (popup-test-with-create-popup
- (popup-tip "long long long long line" :nowait t)
- (with-current-buffer (popup-test-helper-get-overlays-buffer)
- (let ((points (popup-test-helper-match-points
- '("long long long long line"))))
- (should (every #'identity points))
- (should (eq (line-number-at-pos (car points)) 2))
- )))))
+ (popup-tip "long long long long line" :nowait t)
+ (with-current-buffer (popup-test-helper-get-overlays-buffer)
+ (let ((points (popup-test-helper-match-points
+ '("long long long long line"))))
+ (should (every #'identity points))
+ (should (eq (line-number-at-pos (car points)) 2))
+ ))))
(ert-deftest popup-test-folding-long-line-left-bottom ()
(popup-test-with-temp-buffer
(insert (make-string (- (window-body-height) 1) ?\n))
- (popup-test-with-create-popup
- (popup-tip "long long long long line" :nowait t)
- (with-current-buffer (popup-test-helper-get-overlays-buffer)
- (let ((points (popup-test-helper-match-points
- '("long long long long line"))))
- (should (every #'identity points))
- (should (eq (line-number-at-pos (car points))
- (- (window-body-height) 1)))
- )))))
+ (popup-tip "long long long long line" :nowait t)
+ (with-current-buffer (popup-test-helper-get-overlays-buffer)
+ (let ((points (popup-test-helper-match-points
+ '("long long long long line"))))
+ (should (every #'identity points))
+ (should (eq (line-number-at-pos (car points))
+ (- (window-body-height) 1)))
+ ))))
(ert-deftest popup-test-folding-long-line-right-bottom ()
(popup-test-with-temp-buffer
(insert (make-string (- (window-body-height) 1) ?\n))
(insert (make-string (- (window-width) 3) ? ))
- (popup-test-with-create-popup
- (popup-tip "long long long long line" :nowait t)
+ (popup-tip "long long long long line" :nowait t)
(with-current-buffer (popup-test-helper-get-overlays-buffer)
(let ((points (popup-test-helper-match-points
'("long long long long line"))))
- [nongnu] elpa/popup b5e13a8 044/184: update README.md to tweak typos and grammar, (continued)
- [nongnu] elpa/popup b5e13a8 044/184: update README.md to tweak typos and grammar, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 098170f 006/184: Added :always option for :scroll-bar argument., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2cad059 015/184: Initial commit, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 03b23bf 017/184: Merge branch 'master' of github.com:m2ym/popup-el, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup c85ccd3 013/184: Use inhibit-read-only instead of buffer-read-only, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2609811 022/184: Add Travis CI configuration, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e76230b 059/184: Add summary-face keyword argument to popup-set-line-item, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup ab23548 031/184: Change popup-test-helper-overlays-to-text spec and function name to return overlays buffer., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 498cb64 061/184: Define popup-summary-face, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 54ed4bd 048/184: Add test case:popup-next, popup-previous, popup-select, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup fd8a372 039/184: Remove unused code.,
ELPA Syncer <=
- [nongnu] elpa/popup 72c6e4d 027/184: Port some test cases from popup-interactive-test.el, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 180516e 079/184: Use cl-lib functions instead of cl, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 28cb27c 074/184: Add next/previous page commands., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 7fda072 042/184: Add check for row position., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2593e06 071/184: Add test for #18, #19, #20, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 48b0fa4 020/184: Add a simple test using ERT, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e208b13 035/184: Setup for batch mode, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 9814c88 038/184: Add test for test helper, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 581f35b 062/184: Define popup-menu-summary-face, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4e19acb 036/184: Remove dependency on auto-complete, ELPA Syncer, 2021/10/06