3 ;; Copyright (c) ߛ David Maus
6 ;; Released under the GNU General Public License version 3
7 ;; see: http://www.gnu.org/licenses/gpl-3.0.html
11 ;; Template test file for Org-mode tests
15 (let ((load-path (cons (expand-file-name
16 ".." (file-name-directory
17 (or load-file-name buffer-file-name
)))
20 (require 'org-test-ob-consts
))
26 (defmacro org-test-html
/export-link
(name link expected
&optional desc opt-plist
)
27 `(ert-deftest ,(intern (concat "test-org-html/export-link/" name
)) ()
31 (org-test-strip-text-props
32 (org-html-handle-links ,link
,opt-plist
))
35 (org-test-html/export-link
"mailto" "[[mailto:john@example.tld]]"
36 "<a href=\"mailto:john@example.tld\">mailto:john@example.tld</a>"
37 "mailto: link without description")
39 (provide 'test-org-html
)
41 ;;; test-org-html.el ends here