[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 270/287: Make test string smaller/easier to debug for apps-copy
From: |
Matthew Fidler |
Subject: |
[elpa] 270/287: Make test string smaller/easier to debug for apps-copy |
Date: |
Wed, 02 Jul 2014 14:46:35 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 1335c6c125589f72f00bedf2afc2759328f96fcb
Author: Matthew L. Fidler <address@hidden>
Date: Mon Jun 30 10:38:22 2014 -0500
Make test string smaller/easier to debug for apps-copy
---
ergoemacs-test.el | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/ergoemacs-test.el b/ergoemacs-test.el
index 243cce8..6eb8f95 100644
--- a/ergoemacs-test.el
+++ b/ergoemacs-test.el
@@ -511,19 +511,17 @@ Test next and prior translation."
(ert-deftest ergoemacs-test-apps-copy ()
"Tests <apps> c on QWERTY copying a region, not just a line."
(ergoemacs-test-layout
- :macro (format "C-a <%s> c"
+ :macro (format "C-a <%s> c C-v"
(if (eq system-type 'windows-nt)
"apps" "menu"))
- (save-excursion
- (switch-to-buffer (get-buffer-create "*ergoemacs-test*"))
- (insert ergoemacs-test-lorem-ipsum)
- (execute-kbd-macro macro)
- (goto-char (point-max))
- (call-interactively 'ergoemacs-paste)
- (should (string= (concat ergoemacs-test-lorem-ipsum
- ergoemacs-test-lorem-ipsum)
- (buffer-string)))
- (kill-buffer (current-buffer)))))
+ (let ((test-string "1\n2\n3\n4"))
+ (save-excursion
+ (switch-to-buffer (get-buffer-create "*ergoemacs-test*"))
+ (insert test-string)
+ (execute-kbd-macro macro)
+ (should (string= (concat test-string test-string)
+ (buffer-string)))
+ (kill-buffer (current-buffer))))))
(ert-deftest ergoemacs-test-shift-selection ()
"Test that shift selection works properly.
- [elpa] 268/287: Run all ergoemacs- tests, (continued)
- [elpa] 268/287: Run all ergoemacs- tests, Matthew Fidler, 2014/07/02
- [elpa] 265/287: More Robust ergoemacs-end-of-line-or-what (passes noninteractive test), Matthew Fidler, 2014/07/02
- [elpa] 269/287: Add autoload cookie to ergoemacs-test-layout, Matthew Fidler, 2014/07/02
- [elpa] 266/287: Make apps-copy test use C-a, Matthew Fidler, 2014/07/02
- [elpa] 267/287: Move ergoemacs-hook-functions to prevent warnings, Matthew Fidler, 2014/07/02
- [elpa] 263/287: Remove condition-case handler, Matthew Fidler, 2014/07/02
- [elpa] 261/287: Make sure to include the ending new-line when copying an empty line, Matthew Fidler, 2014/07/02
- [elpa] 273/287: Slight bug fix for beginning-of-line-or-what, Matthew Fidler, 2014/07/02
- [elpa] 274/287: add eo and eo-displaced, Matthew Fidler, 2014/07/02
- [elpa] 262/287: Make paste is calling pre/post commands, Matthew Fidler, 2014/07/02
- [elpa] 270/287: Make test string smaller/easier to debug for apps-copy,
Matthew Fidler <=
- [elpa] 276/287: Fix Issue #258, Matthew Fidler, 2014/07/02
- [elpa] 278/287: Fix Issue #256, Matthew Fidler, 2014/07/02
- [elpa] 279/287: Merge branch 'master' of github.com:ergoemacs/ergoemacs-mode, Matthew Fidler, 2014/07/02
- [elpa] 280/287: Merge pull request #255 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 146/287: dolist instaed of mapc, Matthew Fidler, 2014/07/02
- [elpa] 281/287: Make Alt+; the ergoemacs-reduction M-x, Matthew Fidler, 2014/07/02
- [elpa] 165/287: Removed ergoemacs-minibuffer-setup, different quote for emulation-mode-map-alists, Matthew Fidler, 2014/07/02
- [elpa] 271/287: Merge pull request #254 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 272/287: Merge pull request #252 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 282/287: Fix Extra Quote in Issue #255, Matthew Fidler, 2014/07/02