Fix copyright notices for test files.
[org-mode.git] / testing / lisp / test-org-html.el
blob492c388e677008d3d7d193d0bf70cfc0fecdcf18
1 ;;; test-org-html.el --- tests for org-html.el
3 ;; Copyright (c) David Maus
4 ;; Authors: David Maus
6 ;; This file is not part of GNU Emacs.
8 ;; This program is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
13 ;; This program is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ;;; Comments:
23 ;; Template test file for Org-mode tests
25 ;;; Code:
26 (unless (featurep 'org-html)
27 (signal 'missing-test-dependency "Support for Org-html"))
29 (defmacro org-test-html/export-link (name link expected &optional desc opt-plist)
30 `(ert-deftest ,(intern (concat "test-org-html/export-link/" name)) ()
31 ,(or desc name)
32 (should
33 (string=
34 (org-test-strip-text-props
35 (org-html-handle-links ,link ,opt-plist))
36 ,expected))))
38 (org-test-html/export-link "mailto" "[[mailto:john@example.tld]]"
39 "<a href=\"mailto:john@example.tld\">mailto:john@example.tld</a>"
40 "mailto: link without description")
42 (provide 'test-org-html)
44 ;;; test-org-html.el ends here