Use skip-unless instead of if+message in test
* test/lisp/cedet/semantic-utest.el (semantic-utest-Javascript): Use skip-unless instead of if+message.
This commit is contained in:
parent
118d6ef554
commit
aeb11da203
1 changed files with 2 additions and 4 deletions
|
@ -577,10 +577,8 @@ INSERTME is the text to be inserted after the deletion."
|
|||
|
||||
|
||||
(ert-deftest semantic-utest-Javascript()
|
||||
(if (fboundp 'javascript-mode)
|
||||
(semantic-utest-generic (semantic-utest-fname "javascripttest.js") semantic-utest-Javascript-buffer-contents semantic-utest-Javascript-name-contents '("fun2") "//1" "//deleted line")
|
||||
(message "Skipping JavaScript test: NO major mode."))
|
||||
)
|
||||
(skip-unless (fboundp 'javascript-mode))
|
||||
(semantic-utest-generic (semantic-utest-fname "javascripttest.js") semantic-utest-Javascript-buffer-contents semantic-utest-Javascript-name-contents '("fun2") "//1" "//deleted line"))
|
||||
|
||||
(ert-deftest semantic-utest-Java()
|
||||
;; If JDE is installed, it might mess things up depending on the version
|
||||
|
|
Loading…
Add table
Reference in a new issue