commit d134d20d93c3b315a1225f3db883496a0d52ac77 parent 8ba9c99b2efbdd3923212bbe5688c9d7bc67fb04 Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Mon, 2 Nov 2015 23:47:09 +0530 Fix test for isearch integration Diffstat:
M | emojify-tests.el | | | 14 | +++++++++++--- |
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/emojify-tests.el b/emojify-tests.el @@ -345,9 +345,17 @@ Helps isolate tests from each other's customizations." (emojify-tests-should-be-emojified second-emoji-pos) (isearch-mode +1) - (execute-kbd-macro ":book") - (isearch-repeat-forward) - ;; (emojify-tests-should-be-emojified first-emoji-pos) + (isearch-printing-char ?b) + (isearch-printing-char ?o) + + ;; TODO: For some reason first one actually repeats backwards when + ;; called non-interactively As such 2 more repeats are needed first to + ;; go back to first match and second to actually search forward + (isearch-repeat 'forward) + (isearch-repeat 'forward) + (isearch-repeat 'forward) + + (emojify-tests-should-be-emojified first-emoji-pos) (emojify-tests-should-be-uncovered second-emoji-pos) (isearch-exit) ;; Emoji should be restored on leaving the underlying text