[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/markdown-mode cba711a779 2/3: Add unit test of #674
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/markdown-mode cba711a779 2/3: Add unit test of #674 |
Date: |
Mon, 10 Jan 2022 07:58:36 -0500 (EST) |
branch: elpa/markdown-mode
commit cba711a779d5b90beb46ff86dc9af68acce14f7f
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>
Add unit test of #674
---
CHANGES.md | 3 +++
tests/markdown-test.el | 12 ++++++++++++
2 files changed, 15 insertions(+)
diff --git a/CHANGES.md b/CHANGES.md
index c1a7f7c776..f4330da19c 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -81,6 +81,8 @@
- Fix fill paragraph issue with setext heading [GH-638][]
- Fix line break highlighting issue at end of buffer [GH-621][]
- Fix URL highlighting which contains comma or parentheis [GH-649][]
+ - Fix eldoc function issue with `markdown-toggle-url-hiding [GH-674][]
+ Thanks to Ta Quang Trung for a patch
[gh-290]: https://github.com/jrblevin/markdown-mode/issues/290
[gh-311]: https://github.com/jrblevin/markdown-mode/issues/311
@@ -121,6 +123,7 @@
[gh-652]: https://github.com/jrblevin/markdown-mode/issues/652
[gh-663]: https://github.com/jrblevin/markdown-mode/issues/663
[gh-666]: https://github.com/jrblevin/markdown-mode/issues/666
+ [gh-674]: https://github.com/jrblevin/markdown-mode/pull/674
# Markdown Mode 2.4
diff --git a/tests/markdown-test.el b/tests/markdown-test.el
index 33310fbd99..b59ddb278c 100644
--- a/tests/markdown-test.el
+++ b/tests/markdown-test.el
@@ -2224,6 +2224,18 @@ See GH-245."
(should (invisible-p 154))
(should (invisible-p 156)))))
+;;; Markup hiding url tests:
+
+(ert-deftest test-markdown-url-hiding/eldoc ()
+ "Test hiding URL and eldoc.
+Detail: https://github.com/jrblevin/markdown-mode/pull/674"
+ (markdown-test-string "[This is a hidden link](http://hidden.link)"
+ (markdown-toggle-url-hiding +1)
+ (search-forward "(")
+ (markdown-eldoc-function)
+ ;; markdown-eldoc-function doesn't raise an exception
+ (should t)))
+
;;; Font lock tests:
(ert-deftest test-markdown-font-lock/italics-1 ()