* check-modules.el (check-modules-x-face-xmas): New testcase. For
authorkaoru <kaoru>
Fri, 26 Oct 2001 16:41:01 +0000 (16:41 +0000)
committerkaoru <kaoru>
Fri, 26 Oct 2001 16:41:01 +0000 (16:41 +0000)
old x-face utility.
(check-modules-x-face-xmas-wl-display-x-face-was-argument-required):
New function.

tests/ChangeLog
tests/check-modules.el

index c96a939..8ed8243 100644 (file)
@@ -1,3 +1,10 @@
+2001-10-27  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * check-modules.el (check-modules-x-face-xmas): New testcase. For
+       old x-face utility.
+       (check-modules-x-face-xmas-wl-display-x-face-was-argument-required):
+       New function.
+
 2001-08-30  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * test-env.el: Removed (Separated to check-*.el).
index 8adc3bb..ce6a114 100644 (file)
   (require 'apel-ver)
   (lunit-assert
    (product-version>= (product-find 'apel-ver) '(10 2))))
+
+;; X-Face on XEmacs
+(luna-define-method check-modules-x-face-xmas ((case check-modules))
+  (when (and (locate-library "x-face") (featurep 'xemacs))
+    (lunit-assert
+     (check-modules-x-face-xmas-wl-display-x-face-was-argument-required))))
+
+(defun check-modules-x-face-xmas-wl-display-x-face-was-argument-required ()
+  "When `x-face-xmas-wl-display-x-face' has non-optional argument, return `t'."
+  (require 'x-face-xmas)
+  (condition-case nil
+      (with-temp-buffer
+       (x-face-xmas-wl-display-x-face)
+       t)
+    (wrong-number-of-arguments)))