summaryrefslogtreecommitdiff
path: root/app-emacs/markdown-mode/files/markdown-mode-2.5-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/markdown-mode/files/markdown-mode-2.5-test.patch')
-rw-r--r--app-emacs/markdown-mode/files/markdown-mode-2.5-test.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/app-emacs/markdown-mode/files/markdown-mode-2.5-test.patch b/app-emacs/markdown-mode/files/markdown-mode-2.5-test.patch
new file mode 100644
index 000000000000..0bd1e8b7f667
--- /dev/null
+++ b/app-emacs/markdown-mode/files/markdown-mode-2.5-test.patch
@@ -0,0 +1,30 @@
+This test seems to expect interactive input, therefore disable.
+
+--- markdown-mode-2.5/tests/markdown-test.el
++++ markdown-mode-2.5/tests/markdown-test.el
+@@ -6643,25 +6643,6 @@
+ (should (string= (markdown-wiki-link-link) "Zettel Markdown")))
+ (kill-buffer)))))
+
+-(ert-deftest test-markdown-ext/wiki-link-search-under-project ()
+- "Test that searching link under project root."
+- (let ((markdown-enable-wiki-links t)
+- (markdown-link-space-sub-char " ")
+- (markdown-wiki-link-search-type '(project))
+- (expected (expand-file-name "wiki/pr590/Guide/Zettel Markdown/math.md"
+- markdown-test-dir)))
+- (progn
+- (find-file (expand-file-name "wiki/pr590/Guide/Plugin/Link.md" markdown-test-dir))
+- (unwind-protect
+- (progn
+- (markdown-mode)
+- (re-search-forward "math")
+- (goto-char (match-beginning 0))
+- (markdown-wiki-link-p) ;; create match-data
+- (let ((link (markdown-convert-wiki-link-to-filename (markdown-wiki-link-link))))
+- (should (string= (expand-file-name link) expected))))
+- (kill-buffer)))))
+-
+ (ert-deftest test-markdown-ext/wiki-link-major-mode ()
+ "Test major-mode of linked page."
+ (let ((markdown-enable-wiki-links t)