[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-simulated-input dca9d87d50 091/134: Move issue-specif
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-simulated-input dca9d87d50 091/134: Move issue-specific tests to their own block |
Date: |
Mon, 10 Jan 2022 23:00:08 -0500 (EST) |
branch: elpa/with-simulated-input
commit dca9d87d50ae08c7737f6d62cb7fef729760cd8d
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Ryan C. Thompson <rct@thompsonclan.org>
Move issue-specific tests to their own block
---
tests/test-with-simulated-input.el | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/tests/test-with-simulated-input.el
b/tests/test-with-simulated-input.el
index 2a85a62db0..9be5503a16 100644
--- a/tests/test-with-simulated-input.el
+++ b/tests/test-with-simulated-input.el
@@ -203,19 +203,6 @@
(read-string "Second word: ")))
:to-equal '("hello" "world")))
- ;; https://github.com/DarwinAwardWinner/with-simulated-input/issues/4
- (it "should work inside code that switches buffers (issue #4)"
- (let ((orig-current-buffer (current-buffer)))
- (with-temp-buffer
- (let ((temp-buffer (current-buffer)))
- (with-simulated-input "a" (read-char))
- (expect (current-buffer) :to-equal temp-buffer)
- (expect (current-buffer) :not :to-equal orig-current-buffer)))))
-
- (xit "should work in byte-compiled code (issue #6)"
- (expect (call-wsi-from-bytecomp-fun)
- :not :to-throw))
-
(describe "used with `completing-read'"
:var (completing-read-function)
@@ -245,7 +232,21 @@
(with-simulated-input "bl TAB C-j"
(completing-read "Choose: " my-collection nil t))
- :to-throw))))
+ :to-throw)))
+
+ (describe "should not reproduce past issues:"
+ ;; https://github.com/DarwinAwardWinner/with-simulated-input/issues/4
+ (it "Issue #4: simulating input should not switch buffers"
+ (let ((orig-current-buffer (current-buffer)))
+ (with-temp-buffer
+ (let ((temp-buffer (current-buffer)))
+ (with-simulated-input "a" (read-char))
+ (expect (current-buffer) :to-equal temp-buffer)
+ (expect (current-buffer) :not :to-equal orig-current-buffer)))))
+
+ (xit "Issue #6: `with-simulated-input' should work in byte-compiled code"
+ (expect (call-wsi-from-bytecomp-fun)
+ :not :to-throw))))
(defun time-equal-p (t1 t2)
"Return non-nil if T1 and T2 represent the same time.
- [nongnu] elpa/with-simulated-input addb2a0711 122/134: Improve KEYS validation logic and error messages, (continued)
- [nongnu] elpa/with-simulated-input addb2a0711 122/134: Improve KEYS validation logic and error messages, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 0f43fe46d4 134/134: Add CI status badge to README, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 235a93f0fc 060/134: Add test for run-time evaluation of KEYS, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 5f0bc054b5 069/134: Better error propagation, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input abe9c855a8 075/134: `with-simulated-input' support `list' KEYS, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 1f48107e92 081/134: Add nbfalcon as Author, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 5713495a1c 067/134: Refactor: `with-simulated-input' function, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 2a4866984a 080/134: No longer handle variables specially in KEYS, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 6c2e0ece2d 084/134: Use #' for advice-add/-remove, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 582844da4c 085/134: Add a failing test for byte-compiled closures, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input dca9d87d50 091/134: Move issue-specific tests to their own block,
ELPA Syncer <=
- [nongnu] elpa/with-simulated-input c5b3f7ac70 097/134: Add tests for nil input, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 0a1b0dea0a 101/134: Clean up with-simulated-input-1, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 138106c256 116/134: Skip coverage calculation on older Emacsen, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 1b9123c708 112/134: Cache the return value of wsi-get-unbound-key, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4abf2f0e6b 103/134: Replace def-form with form in debug declaration, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input c0b765c7fb 115/134: Add debug declarations to macros in test file, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 445df9edfd 110/134: Eliminate unnecessary quotes in test suite, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 80d57be458 099/134: Make all the tests pass, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 41f4547339 132/134: Clarify a comment, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input a30bd8e6e4 129/134: Fix the test for variables in KEYS, ELPA Syncer, 2022/01/10