commit 4ea210dceab002123d0da2f678c9fe4103ad5d60 parent e2e51dad6fb80df00847936c230a6113ecaf2160 Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Tue, 3 Nov 2015 09:32:56 +0530 Add tests for after-change function Diffstat:
M | emojify-tests.el | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/emojify-tests.el b/emojify-tests.el @@ -129,6 +129,19 @@ Helps isolate tests from each other's customizations." (should (equal (get-text-property (point) 'emojify-end) (point-max))) (should (equal (get-text-property (point) 'emojify-text) ":smile:")))) +(ert-deftest emojify-tests-emojifying-after-change () + :tags '(github simple) + (emojify-tests-with-emojified-buffer ":smile:\n:)" + (emacs-lisp-mode) + (emojify-redisplay-emojis) + (emojify-mode +1) + (emojify-tests-should-not-be-emojified (line-beginning-position)) + (emojify-tests-should-not-be-emojified (line-beginning-position 2)) + + (comment-region (point-min) (point-max)) + (emojify-tests-should-be-emojified (+ 3 (line-beginning-position))) + (emojify-tests-should-be-emojified (+ 3 (line-beginning-position 2))))) + (ert-deftest emojify-tests-emoji-uncovering () :tags '(behaviour point-motion) (emojify-tests-with-emojified-buffer " :)"