aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoakim Verona2013-01-08 00:03:39 +0100
committerJoakim Verona2013-01-08 00:03:39 +0100
commit1c05adeed60d0afbe9439bcc995bcd4b9e40a53b (patch)
tree2b7791b68de6eb6f716c08077d872ce7bcf828ef /test
parentbe73be611d160876f9df633ff3a2d86eb78f65c7 (diff)
parentacfe10b71c260718f72445cd984327c1d96063ab (diff)
downloademacs-1c05adeed60d0afbe9439bcc995bcd4b9e40a53b.tar.gz
emacs-1c05adeed60d0afbe9439bcc995bcd4b9e40a53b.zip
auto upstream
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: