[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 6b2c073 49/50: Correct test cases failing on
From: |
Stefan Monnier |
Subject: |
[elpa] externals/hyperbole 6b2c073 49/50: Correct test cases failing on mac (#55) |
Date: |
Wed, 17 Mar 2021 18:44:24 -0400 (EDT) |
branch: externals/hyperbole
commit 6b2c073eb0582c0410c09e07e5241769635e43b8
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: GitHub <noreply@github.com>
Correct test cases failing on mac (#55)
Use env for HOME in comparison
Make non proportional scrolling test more robust
---
Changes | 8 ++++++++
test/demo-tests.el | 5 +++--
test/hibtypes-tests.el | 2 +-
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/Changes b/Changes
index da33caa..abdd041 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,11 @@
+2021-03-14 Mats Lidell <matsl@gnu.org>
+
+* test/demo-tests.el (demo-smart-scrolling-non-proportional-test): Make
+ test more robust
+
+* test/hibtypes-tests.el (ibtypes::pathname-env-variable-test): Use env
+ for HOME to not depend on machine or OS specifics
+
2021-03-14 Bob Weiner <rsw@gnu.org>
* man/hyperbole.texi (Smart Key - Magit Mode):
diff --git a/test/demo-tests.el b/test/demo-tests.el
index e258f4e..a0cc222 100644
--- a/test/demo-tests.el
+++ b/test/demo-tests.el
@@ -79,7 +79,6 @@
(pos (point)))
(end-of-line)
(action-key)
- (beginning-of-line)
(should (= pos (window-start)))))
(kill-buffer "DEMO")))
@@ -89,10 +88,12 @@
(hypb:display-file-with-logo (expand-file-name "DEMO" hyperb:dir))
(goto-char (point-min))
(re-search-forward "Table of Contents")
+ (beginning-of-line)
(let ((smart-scroll-proportional nil)
(pos (point)))
+ (end-of-line)
(action-key)
- (should (< pos (point)))))
+ (should (< pos (window-start)))))
(kill-buffer "DEMO")))
;; Hyperbole menus
diff --git a/test/hibtypes-tests.el b/test/hibtypes-tests.el
index c095711..4f74482 100644
--- a/test/hibtypes-tests.el
+++ b/test/hibtypes-tests.el
@@ -76,7 +76,7 @@
(goto-char 2)
(ibtypes::pathname)
(should (equal major-mode 'dired-mode))
- (should (= 0 (string-match "/home/.*" (file-truename
default-directory)))))
+ (should (= 0 (string-match (getenv "HOME") (file-truename
default-directory)))))
nil))
(ert-deftest ibtypes::pathname-emacs-lisp-file-test ()
- [elpa] externals/hyperbole db73cf7 19/50: Use \0 for matched Nth substitution (see also commit #c0e48fb3), (continued)
- [elpa] externals/hyperbole db73cf7 19/50: Use \0 for matched Nth substitution (see also commit #c0e48fb3), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 1826307 27/50: Resolve bug#43644 where final double quote was trimmed from strings., Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole f38a8dd 28/50: Fix Hyrolo logicial searches; bug fixes; handle file:// URLs better, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 3469ea3 29/50: Release defil and defal simpler implicit button type create macros, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 6a8154a 33/50: Add first unit tests (#46), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole a44b392 34/50: Add UNIX shell error implicit button support, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole aa6f2f6 38/50: Verify error message from hpath:find is correct (#50), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole aad4494 40/50: Add smart-magit-tab: Do what TAB or RET does, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole d1dcd54 41/50: * Disable magit-auto-revert-mode-enable-in-buffers in hyrolo buffer, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole c7d62e1 46/50: Make defil handle action type symbols and strings, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 6b2c073 49/50: Correct test cases failing on mac (#55),
Stefan Monnier <=
- [elpa] externals/hyperbole 4eef4e9 50/50: Install with-simulated-input if not available (#54), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 25ba634 31/50: Add fast window link button creation via {M-o w} with Ace Window., Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 64579b0 30/50: Fix defil with function improper call to regexp-quote, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole fccc0e5 42/50: Limit Action Button function arg to parameter after function name, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 1219e12 35/50: Merge branch 'master' of hyperbole, Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 9ca5b0f 45/50: More tests for ib with labels (#53), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole cd36bea 39/50: Add more defal and defil tests (#51), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole aeb5a31 37/50: Add defal defil tests plus some extras (#49), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole 1c21784 44/50: Add tests for ib with labels (#52), Stefan Monnier, 2021/03/17
- [elpa] externals/hyperbole faa061e 48/50: Magit Action/Assist Mouse Key on header line toggles diff/all sections visibility, Stefan Monnier, 2021/03/17