[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6f3ad75 30/31: Update test function documentation.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master 6f3ad75 30/31: Update test function documentation. |
Date: |
Mon, 09 Feb 2015 01:09:40 +0000 |
branch: master
commit 6f3ad757155b9b3089aba55ee6102ecc9bed647d
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Update test function documentation.
---
test/context-coloring-test.el | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index 8c79b4c..fdb0d83 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -360,12 +360,15 @@ return t for a theme with SETTINGS."
(defun context-coloring-test-assert-theme-settings-highest-level
(settings expected-level)
+ "Assert that a theme with SETTINGS has the highest level
+EXPECTED-LEVEL."
(let ((theme (context-coloring-test-get-next-theme)))
(put theme 'theme-settings settings)
(context-coloring-test-assert-theme-highest-level theme expected-level)))
(defun context-coloring-test-assert-theme-highest-level
(theme expected-level &optional negate)
+ "Assert that THEME has the highest level EXPECTED-LEVEL."
(let ((highest-level (context-coloring-theme-highest-level theme)))
(when (funcall (if negate 'identity 'not) (eq highest-level
expected-level))
(ert-fail (format (concat "Expected theme with settings `%s' "
@@ -376,6 +379,7 @@ return t for a theme with SETTINGS."
(if negate "did" (format "was %s" highest-level)))))))
(defun context-coloring-test-assert-theme-not-highest-level (&rest arguments)
+ "Assert that THEME's highest level is not EXPECTED-LEVEL."
(apply 'context-coloring-test-assert-theme-highest-level
(append arguments '(t))))
@@ -400,6 +404,9 @@ return t for a theme with SETTINGS."
)
(defmacro context-coloring-test-deftest-define-theme (name &rest body)
+ "Define a test with an automatically-generated theme symbol
+available as a free variable `theme'. Side-effects from enabling
+themes are reversed after the test completes."
(declare (indent defun))
(let ((deftest-name (intern
(format "context-coloring-test-define-theme-%s" name))))
@@ -414,6 +421,7 @@ return t for a theme with SETTINGS."
(context-coloring-set-colors-default))))))
(defun context-coloring-test-deftheme (theme)
+ "Dynamically define theme THEME."
(eval (macroexpand `(deftheme ,theme))))
(context-coloring-test-deftest-define-theme additive
@@ -429,6 +437,8 @@ return t for a theme with SETTINGS."
(context-coloring-test-assert-face 1 "#bbbbbb"))
(defun context-coloring-test-assert-defined-warning (theme)
+ "Assert that a warning about colors already being defined for
+theme THEME is signaled."
(context-coloring-test-assert-message
(format (concat "Warning (emacs): Context coloring colors for theme "
"`%s' are already defined")
@@ -554,6 +564,7 @@ return t for a theme with SETTINGS."
(context-coloring-test-assert-face 1 "#bbbbbb"))
(defun context-coloring-test-assert-face-count (count &optional negate)
+ "Assert that `context-coloring-face-count' is COUNT."
(when (funcall (if negate 'identity 'not)
(eq context-coloring-face-count count))
(ert-fail (format (concat "Expected `context-coloring-face-count' "
@@ -565,6 +576,7 @@ return t for a theme with SETTINGS."
(format "was `%s'" context-coloring-face-count))))))
(defun context-coloring-test-assert-not-face-count (&rest arguments)
+ "Assert that `context-coloring-face-count' is not COUNT."
(apply 'context-coloring-test-assert-face-count
(append arguments '(t))))
- [elpa] master 6eef78b 21/31: Add spacegray theme., (continued)
- [elpa] master 6eef78b 21/31: Add spacegray theme., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 2b687ae 19/31: Pass test for disabling., Jackson Ray Hamilton, 2015/02/08
- [elpa] master a197a8c 20/31: Add disclaimer about precedence., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 9d55bd6 18/31: Generalize assertions. Write failing test for disabling., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 3bd7e26 22/31: Add anti-zenburn theme., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 35b3e71 23/31: Add ample theme., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 0b42ae1 24/31: Add grandshell theme., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 0b8d03d 25/31: Update readme., Jackson Ray Hamilton, 2015/02/08
- [elpa] master fb14816 26/31: Update readme., Jackson Ray Hamilton, 2015/02/08
- [elpa] master c2b6999 29/31: Version 5.0.0., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 6f3ad75 30/31: Update test function documentation.,
Jackson Ray Hamilton <=
- [elpa] master 2889b27 27/31: Mark unused lexical argument., Jackson Ray Hamilton, 2015/02/08
- [elpa] master 352a8b0 28/31: Delete deprecated function., Jackson Ray Hamilton, 2015/02/08
- [elpa] master f664821 31/31: Merge commit '6f3ad757155b9b3089aba55ee6102ecc9bed647d' from context-coloring, Jackson Ray Hamilton, 2015/02/08