aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/automated/advice-tests.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/automated/advice-tests.el b/test/automated/advice-tests.el
index bc9135c92d0..238561bef84 100644
--- a/test/automated/advice-tests.el
+++ b/test/automated/advice-tests.el
@@ -107,6 +107,12 @@
107 (lambda (f &rest args) 107 (lambda (f &rest args)
108 (cons (cons 2 (called-interactively-p)) (apply f args)))) 108 (cons (cons 2 (called-interactively-p)) (apply f args))))
109 (should (equal (call-interactively 'sm-test7) '((2 . t) (1 . t) 11))) 109 (should (equal (call-interactively 'sm-test7) '((2 . t) (1 . t) 11)))
110
111 ;; Check handling of interactive spec.
112 (defun sm-test8 (a) (interactive "p") a)
113 (defadvice sm-test8 (before adv1 activate) nil)
114 (defadvice sm-test8 (before adv2 activate) (interactive "P") nil)
115 (should (equal (interactive-form 'sm-test8) '(interactive "P")))
110 )) 116 ))
111 117
112;; Local Variables: 118;; Local Variables: