emacs-emojify

fork of https://github.com/iqbalansari/emacs-emojify
Log | Files | Refs | LICENSE

commit 55db423fc17218e89f78be59fe4e18ec634fac8d
parent b609ffb92b4e9e83f006254565ab25f936aea2d9
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date:   Sun,  1 Nov 2015 21:00:15 +0530

Add tests for org-mode integration

Diffstat:
Memojify-tests.el | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/emojify-tests.el b/emojify-tests.el @@ -292,6 +292,28 @@ Helps isolate tests from each other's customizations." (emojify-tests-should-not-be-emojified (1- (line-end-position))) (emojify-tests-should-be-emojified (line-beginning-position 2))) + (emojify-tests-with-emojified-static-buffer "8)" + (org-mode) + (emojify-redisplay-emojis) + (emojify-tests-should-not-be-emojified (point-min))) + + (emojify-tests-with-emojified-static-buffer "* 8)" + (org-mode) + (emojify-redisplay-emojis) + (emojify-tests-should-be-emojified (1- (point-max)))) + + (emojify-tests-with-emojified-static-buffer "#+BEGIN_SRC emacs-lisp\n:)\n#+END_SRC" + (org-mode) + (emojify-redisplay-emojis) + (emojify-tests-should-not-be-emojified (line-beginning-position 2))) + + ;; TODO: This does not work yet + ;; (emojify-tests-with-emojified-static-buffer "8) 8)" + ;; (org-mode) + ;; (emojify-redisplay-emojis) + ;; (emojify-tests-should-be-emojified (1- (point-max))) + ;; (emojify-tests-should-not-be-emojified (1+ (point-min)))) + (emojify-tests-with-emojified-static-buffer "* Test :books:\n:books:" (org-agenda-mode) (emojify-redisplay-emojis)