[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup a3d1bfd 112/184: Fix test.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup a3d1bfd 112/184: Fix test. |
Date: |
Wed, 6 Oct 2021 00:01:23 -0400 (EDT) |
branch: elpa/popup
commit a3d1bfd549a922aa00a362aa4501a3bb494e66d5
Author: TAKAGI Kentaro <kentaro0910+git@gmail.com>
Commit: TAKAGI Kentaro <kentaro0910+git@gmail.com>
Fix test.
---
tests/popup-test.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/tests/popup-test.el b/tests/popup-test.el
index bfc19c7..caf22b4 100644
--- a/tests/popup-test.el
+++ b/tests/popup-test.el
@@ -5,6 +5,11 @@
(when (< (frame-width) (length "long long long long line"))
(set-frame-size (selected-frame) 80 35))
+(defun popup-test-helper-posn-col-row (dummy)
+ "This function is workaround. Because `posn-col-row' and `posn-at-point'
+can not work well in batch mode."
+ (cons (current-column) (line-number-at-pos (point))))
+
(defmacro popup-test-with-common-setup (&rest body)
(declare (indent 0) (debug t))
`(save-excursion
@@ -12,8 +17,11 @@
(switch-to-buffer (current-buffer))
(delete-other-windows)
(erase-buffer)
- ,@body
- )))
+ (if noninteractive
+ (cl-letf (((symbol-function 'posn-col-row)
+ #'popup-test-helper-posn-col-row))
+ ,@body)
+ ,@body))))
(defun popup-test-helper-line-move-visual (arg)
"This function is workaround. Because `line-move-visual' can not work well in
- [nongnu] elpa/popup 2f1c9d8 056/184: Refactoring: new variable in popup-create-line-string, (continued)
- [nongnu] elpa/popup 2f1c9d8 056/184: Refactoring: new variable in popup-create-line-string, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 6a2520d 040/184: Add folding test case when on the corner, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 17a0cd4 080/184: Add :initial-cursor keyword option to popup-menu*., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 37c8761 070/184: Refactoring all test cases, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 05f5492 069/184: Change buffer-contents from string to propertied string for detecting end of popup., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 23652e7 064/184: Use face inheritance to avoid duplication, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup aa8762f 077/184: Fix travis configuration file for using cl-lib, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup ca3cc7f 106/184: Add: initial-index keyword argument to function `popup-menu*'. (initial-index argument is optional argument), ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4bee35b 128/184: Add screenshot images, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 871d893 083/184: Merge pull request #54 from auto-complete/use-cl-lib, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup a3d1bfd 112/184: Fix test.,
ELPA Syncer <=
- [nongnu] elpa/popup a73a3b1 104/184: Fix for using cask, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 0f640e0 087/184: remove require because popup already requires it, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 33dac62 127/184: Fix MELPA stable link, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 982f4ec 108/184: Untabify, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8ca9644 091/184: Delete trailing spaces, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 2af1c6c 129/184: Update copyright, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 730b408 113/184: Ignore byte-compiled files, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 46632ab 134/184: Merge pull request #93 from auto-complete/fix-for-24.5, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 91285c2 140/184: Update document about customize variables, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 441ee40 152/184: Merge pull request #107 from danrharms/master, ELPA Syncer, 2021/10/06