[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 9c25ca128a 051/143: Add test for moving up fr
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole 9c25ca128a 051/143: Add test for moving up from sub header |
Date: |
Mon, 19 Feb 2024 15:58:53 -0500 (EST) |
branch: externals/hyperbole
commit 9c25ca128a94efb81e0a6ed24d123a0d78dc5bea
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: Mats Lidell <mats.lidell@lidells.se>
Add test for moving up from sub header
---
ChangeLog | 1 +
test/hyrolo-tests.el | 24 +++++++++++++++++++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 0f02762c89..50eddf1d3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
(hyrolo-tests--outline-next-visible-header)
(hyrolo-tests--tab-through-matches)
(hyrolo-tests--outline-hide-show-heading)
+ (hyrolo-tests--outline-up-header)
(hyrolo-tests--outline-next-visible-header-two-sections): Add test for
working with hyrolo matches.
diff --git a/test/hyrolo-tests.el b/test/hyrolo-tests.el
index 7cb7f8bf33..5e714c5b1f 100644
--- a/test/hyrolo-tests.el
+++ b/test/hyrolo-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <matsl@gnu.org>
;;
;; Orig-Date: 19-Jun-21 at 22:42:00
-;; Last-Mod: 1-Jan-24 at 19:29:48 by Mats Lidell
+;; Last-Mod: 1-Jan-24 at 20:56:49 by Mats Lidell
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -566,6 +566,28 @@ Example:
(kill-buffer "*HyRolo*")
(hy-delete-file-and-buffer org-file))))
+(ert-deftest hyrolo-tests--outline-up-header ()
+ "Verify movement from sub header to next header one level above."
+ (let* ((org-file (make-temp-file "hypb" nil ".org"
+ (hyrolo-tests--gen-outline "header" 2
"body" 3)))
+ (hyrolo-file-list (list org-file)))
+ (unwind-protect
+ (progn
+ (hyrolo-grep "body")
+ (should (string= "*HyRolo*" (buffer-name)))
+
+ ;; Move to last header
+ (goto-char (point-max))
+ (forward-line -2)
+ (should (looking-at-p "^*** header 2.2.3$"))
+ (should (hact 'kbd-key "u"))
+ (should (looking-at-p "^** header 2.2$"))
+ (should (hact 'kbd-key "u"))
+ (should (looking-at-p "^* header 2$"))
+ (should-error (hact 'kbd-key "u")))
+ (kill-buffer "*HyRolo*")
+ (hy-delete-file-and-buffer org-file))))
+
(ert-deftest hyrolo-tests--outline-next-visible-header-two-sections ()
"Verify movement to next visible header with two sections."
(let* ((org-file1 (make-temp-file "hypb" nil ".org"
- [elpa] externals/hyperbole 7ad3cabb7e 098/143: Revert "Remove skip guard on test that works in batch mode" (#448), (continued)
- [elpa] externals/hyperbole 7ad3cabb7e 098/143: Revert "Remove skip guard on test that works in batch mode" (#448), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 68564a0f0d 110/143: Enable HyRolo's extended reveal-mode used in *HyRolo* buffer, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 92ee298bf4 111/143: HyRolo - Fix major-mode and reveal-mode issues affecting *HyRolo*, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 5e85e72772 107/143: hyperbole-web-search-alist: Add 'ducKduckgo' search engine, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 2f5d06dd4c 012/143: Add tests for hpath:expand and hpath:expand-list, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole c73e948516 022/143: Merge pull request #422 from rswgnu/matsl-rsw-hui-link-possible-types, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f4fccc5abf 025/143: Merge pull request #423 from rswgnu/matsl-rsw-ignore-local-vars-in-demo, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole d4c881007b 035/143: Add remaining test cases for fast-demo, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1e8006fc19 053/143: Fix more regexps and remove not working visibility check, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1e1d2950e4 041/143: hyperbole.texi - add doc for Smark Key handling in ERT result bufs, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 9c25ca128a 051/143: Add test for moving up from sub header,
ELPA Syncer <=
- [elpa] externals/hyperbole f098816abd 055/143: Add hsys-flymake.el; fix text-toc actype and {C-u C-h A}, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1154b391e3 011/143: Fix link-to-regexp-match to use 'n' count during regexp search, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole bd5f59b2e0 016/143: hyrolo-mode-map - add [ and ] keys to move to prev and next @loc>, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 71aa8f2587 018/143: Add test for hui:link-possible-types, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole d59f27c469 026/143: Fix most remaining outstanding issues in HyRolo, ibut-link-directly, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 46d8da0039 019/143: Fix test as ebut is being identified correctly, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 0798e16ab0 030/143: Fix doc on switch of cross-window drags create ibuts with Action Key., ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole ee453d177f 033/143: hpath--expand-list-match-regexp - Fix test with regexp char quoting, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 140798a28f 037/143: Merge pull request #426 from rswgnu/matsl-rsw-add-missing-fast-demo-tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f2c6081a9c 034/143: Add fast-demo test for outline section with line and column, ELPA Syncer, 2024/02/19