From 9fff5491c30189c8446cd03fe7d80a13b20d69d3 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 21 Sep 2020 17:55:37 +0200 Subject: [PATCH] Convert a manual test for nxml-mode to unit test * test/manual/indent/nxml.xml: Delete file. * test/lisp/nxml/nxml-mode-tests.el (nxml-mode-test-comment-bug-17264): New test based on deleted file. --- test/lisp/nxml/nxml-mode-tests.el | 21 +++++++++++++++++++++ test/manual/indent/nxml.xml | 10 ---------- 2 files changed, 21 insertions(+), 10 deletions(-) delete mode 100644 test/manual/indent/nxml.xml diff --git a/test/lisp/nxml/nxml-mode-tests.el b/test/lisp/nxml/nxml-mode-tests.el index 624e5c8866d..54d3bd8d132 100644 --- a/test/lisp/nxml/nxml-mode-tests.el +++ b/test/lisp/nxml/nxml-mode-tests.el @@ -132,5 +132,26 @@ ")))) +(ert-deftest nxml-mode-test-comment-bug-17264 () + "Test for Bug#17264." + (with-temp-buffer + (nxml-mode) + (let ((data " + + + +")) + (insert data) + (goto-char (point-min)) + (search-forward " - - - -- 2.39.5