aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ChangeLog4
-rw-r--r--test/automated/tildify-tests.el10
2 files changed, 9 insertions, 5 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 6248d6cb9a6..bb8ed89bed0 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,5 +1,9 @@
12014-06-05 Michal Nazarewicz <mina86@mina86.com> 12014-06-05 Michal Nazarewicz <mina86@mina86.com>
2 2
3 * automated/tildify-tests.el (tildify-test--test): Optimise the test
4 slightly by reusing the same temporary buffer across multiple test
5 cases.
6
3 * automated/tildify-tests.el (tildify-test-find-env-end-re-bug) 7 * automated/tildify-tests.el (tildify-test-find-env-end-re-bug)
4 (tildify-test-find-env-group-index-bug): Update to support new 8 (tildify-test-find-env-group-index-bug): Update to support new
5 signature of the `tildify-foreach-region-outside-env' function. 9 signature of the `tildify-foreach-region-outside-env' function.
diff --git a/test/automated/tildify-tests.el b/test/automated/tildify-tests.el
index cf18320030d..86c83d7ac5b 100644
--- a/test/automated/tildify-tests.el
+++ b/test/automated/tildify-tests.el
@@ -54,16 +54,16 @@ If IS-XML is non-nil, <pre> tag is not treated specially."
54 "Test tildify running in MODES. 54 "Test tildify running in MODES.
55INPUT is the initial content of the buffer and EXPECTED is expected result 55INPUT is the initial content of the buffer and EXPECTED is expected result
56after `tildify-buffer' is run." 56after `tildify-buffer' is run."
57 (dolist (mode modes) 57 (with-temp-buffer
58 (with-temp-buffer 58 (dolist (mode modes)
59 (erase-buffer)
59 (funcall mode) 60 (funcall mode)
60 (let ((header (concat "Testing `tildify-buffer' in " 61 (let ((header (concat "Testing `tildify-buffer' in "
61 (symbol-name mode) "\n"))) 62 (symbol-name mode) "\n")))
62 (insert header input) 63 (insert header input)
63 (tildify-buffer t) 64 (tildify-buffer t)
64 (should (string-equal (concat header expected) (buffer-string))))) 65 (should (string-equal (concat header expected) (buffer-string))))
65 (with-temp-buffer 66 (erase-buffer)
66 (funcall mode)
67 (let ((header (concat "Testing `tildify-region' in " 67 (let ((header (concat "Testing `tildify-region' in "
68 (symbol-name mode) "\n"))) 68 (symbol-name mode) "\n")))
69 (insert header input) 69 (insert header input)