[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 06efd73 09/31: Fix assertion so tests fail.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 06efd73 09/31: Fix assertion so tests fail. |
Date: |
Mon, 09 Feb 2015 01:09:32 +0000 |
branch: master
commit 06efd73340f04fc7be99f3917d98f821afc84772
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Fix assertion so tests fail.
---
test/context-coloring-test.el | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index e5e9740..5a55f28 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -228,7 +228,12 @@ EXPECTED-FACE."
(defun context-coloring-test-assert-no-message (buffer)
"Assert that BUFFER has no message."
- (null (get-buffer buffer)))
+ (when (get-buffer buffer)
+ (ert-fail (format (concat "Expected buffer `%s' to have no messages, "
+ "but it did: `%s'")
+ buffer
+ (with-current-buffer buffer
+ (buffer-string))))))
(defun context-coloring-test-kill-buffer (buffer)
"Kill BUFFER if it exists."
@@ -409,7 +414,7 @@ t for a theme with SETTINGS."
(context-coloring-test-assert-defined-warning theme)
(context-coloring-test-kill-buffer "*Warnings*")
(enable-theme theme)
- (context-coloring-test-assert-defined-warning theme)
+ (context-coloring-test-assert-no-message "*Warnings*")
(context-coloring-test-assert-face 0 "#cccccc")
(context-coloring-test-assert-face 1 "#dddddd"))
- [elpa] master updated (2fb700c -> f664821), Jackson Ray Hamilton, 2015/02/08
- [elpa] master 15b38a8 01/31: Cleanup., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 2b6d30e 05/31: Document context-coloring-define-theme., Jackson Ray Hamilton, 2015/02/08
- [elpa] master ce5c6d9 07/31: Write and pass post-recede test., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 4c7082f 06/31: Spaces., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 2875503 04/31: Write and pass tests for context-coloring-define-theme and recede and override properties., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 874982e 08/31: Update test names., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 06efd73 09/31: Fix assertion so tests fail.,
Jackson Ray Hamilton <=
- [elpa] master 23a12b8 12/31: Rename test., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 06a7606 10/31: Pass / update tests for warnings., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 6e6bc61 15/31: Rename themep to theme-p., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 0f036c9 13/31: Improve documentation for themes., Jackson Ray Hamilton, 2015/02/08
- [elpa] master ca7122c 16/31: Remove `when'., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 71a1a0c 14/31: Rename ambiguous "defined" to "originally set"., Jackson Ray Hamilton, 2015/02/08
- [elpa] master c4459fe 02/31: Fix faces on light tty backgrounds. Be more conservative about applying themes., Jackson Ray Hamilton, 2015/02/08
- [elpa] master cda491a 17/31: Long lines., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 807f484 03/31: Allow themes to be overridden, but warn., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 2090e5d 11/31: Add missing case for a theme that does not set faces., Jackson Ray Hamilton, 2015/02/08