aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris2014-05-07 20:41:21 -0700
committerGlenn Morris2014-05-07 20:41:21 -0700
commitfb3f83f5fd9e80347c8b8e36f6eaefbb912fe57b (patch)
treef106c360c3aef01bcacdc77b66b7c5b20261502e /test
parent1ba38c429fa6ce17568771ef51c8e53b1a72bb94 (diff)
parent606695a67801acfd1792110e4ea3228b50b0117d (diff)
downloademacs-fb3f83f5fd9e80347c8b8e36f6eaefbb912fe57b.tar.gz
emacs-fb3f83f5fd9e80347c8b8e36f6eaefbb912fe57b.zip
Merge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.org
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog14
-rw-r--r--test/automated/help-fns.el37
-rw-r--r--test/automated/ruby-mode-tests.el4
-rw-r--r--test/automated/vc-bzr.el12
4 files changed, 64 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 29e299e5eaa..5cb8aae8c1f 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,17 @@
12014-05-08 Glenn Morris <rgm@gnu.org>
2
3 * automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781)
4 (vc-bzr-test-faulty-bzr-autoloads): Disable bzr logging.
5
62014-05-08 Dmitry Gutov <dgutov@yandex.ru>
7
8 * automated/ruby-mode-tests.el (ruby-interpolation-after-dollar-sign):
9 New test.
10
112014-05-08 Glenn Morris <rgm@gnu.org>
12
13 * automated/help-fns.el: New file.
14
12014-05-01 Barry O'Reilly <gundaetiapo@gmail.com> 152014-05-01 Barry O'Reilly <gundaetiapo@gmail.com>
2 16
3 * automated/undo-tests.el (undo-test-region-deletion): New test to 17 * automated/undo-tests.el (undo-test-region-deletion): New test to
diff --git a/test/automated/help-fns.el b/test/automated/help-fns.el
new file mode 100644
index 00000000000..153de7f9e30
--- /dev/null
+++ b/test/automated/help-fns.el
@@ -0,0 +1,37 @@
1;;; help-fns.el --- tests for help-fns.el
2
3;; Copyright (C) 2014 Free Software Foundation, Inc.
4
5;; Maintainer: emacs-devel@gnu.org
6
7;; This file is part of GNU Emacs.
8
9;; GNU Emacs is free software: you can redistribute it and/or modify
10;; it under the terms of the GNU General Public License as published by
11;; the Free Software Foundation, either version 3 of the License, or
12;; (at your option) any later version.
13
14;; GNU Emacs is distributed in the hope that it will be useful,
15;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;; GNU General Public License for more details.
18
19;; You should have received a copy of the GNU General Public License
20;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
22;;; Commentary:
23
24;;; Code:
25
26(require 'ert)
27
28(autoload 'help-fns-test--macro "help-fns" nil nil t)
29
30(ert-deftest help-fns-test-bug17410 ()
31 "Test for http://debbugs.gnu.org/17410 ."
32 (describe-function 'help-fns-test--macro)
33 (with-current-buffer "*Help*"
34 (goto-char (point-min))
35 (should (search-forward "autoloaded Lisp macro" (line-end-position)))))
36
37;;; help-fns.el ends here
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el
index f6fddb5ef4c..0ad5650cd77 100644
--- a/test/automated/ruby-mode-tests.el
+++ b/test/automated/ruby-mode-tests.el
@@ -452,6 +452,10 @@ VALUES-PLIST is a list with alternating index and value elements."
452 (ruby-assert-face "%w{foo #@bar}" 8 font-lock-string-face) 452 (ruby-assert-face "%w{foo #@bar}" 8 font-lock-string-face)
453 (ruby-assert-face "%s{foo #@bar}" 8 font-lock-string-face)) 453 (ruby-assert-face "%s{foo #@bar}" 8 font-lock-string-face))
454 454
455(ert-deftest ruby-interpolation-after-dollar-sign ()
456 (ruby-assert-face "\"$#{balance}\"" 2 'font-lock-string-face)
457 (ruby-assert-face "\"$#{balance}\"" 3 'font-lock-variable-name-face))
458
455(ert-deftest ruby-no-unknown-percent-literals () 459(ert-deftest ruby-no-unknown-percent-literals ()
456 ;; No folding of case. 460 ;; No folding of case.
457 (ruby-assert-face "%S{foo}" 4 nil) 461 (ruby-assert-face "%S{foo}" 4 nil)
diff --git a/test/automated/vc-bzr.el b/test/automated/vc-bzr.el
index e2ea3f6aeea..5cfa3c2691f 100644
--- a/test/automated/vc-bzr.el
+++ b/test/automated/vc-bzr.el
@@ -33,7 +33,9 @@
33 (skip-unless (executable-find vc-bzr-program)) 33 (skip-unless (executable-find vc-bzr-program))
34 (let* ((tempdir (make-temp-file "vc-bzr-test" t)) 34 (let* ((tempdir (make-temp-file "vc-bzr-test" t))
35 (ignored-dir (expand-file-name "ignored-dir" tempdir)) 35 (ignored-dir (expand-file-name "ignored-dir" tempdir))
36 (default-directory (file-name-as-directory tempdir))) 36 (default-directory (file-name-as-directory tempdir))
37 (process-environment (cons (format "BZR_LOG=%s" null-device)
38 process-environment)))
37 (unwind-protect 39 (unwind-protect
38 (progn 40 (progn
39 (make-directory ignored-dir) 41 (make-directory ignored-dir)
@@ -64,7 +66,9 @@
64 (let* ((tempdir (make-temp-file "vc-bzr-test" t)) 66 (let* ((tempdir (make-temp-file "vc-bzr-test" t))
65 (subdir (expand-file-name "subdir" tempdir)) 67 (subdir (expand-file-name "subdir" tempdir))
66 (file (expand-file-name "file" tempdir)) 68 (file (expand-file-name "file" tempdir))
67 (default-directory (file-name-as-directory tempdir))) 69 (default-directory (file-name-as-directory tempdir))
70 (process-environment (cons (format "BZR_LOG=%s" null-device)
71 process-environment)))
68 (unwind-protect 72 (unwind-protect
69 (progn 73 (progn
70 (call-process vc-bzr-program nil nil nil "init") 74 (call-process vc-bzr-program nil nil nil "init")
@@ -100,7 +104,9 @@
100 (let* ((tempdir (make-temp-file "vc-bzr-test" t)) 104 (let* ((tempdir (make-temp-file "vc-bzr-test" t))
101 (file (expand-file-name "foo.el" tempdir)) 105 (file (expand-file-name "foo.el" tempdir))
102 (default-directory (file-name-as-directory tempdir)) 106 (default-directory (file-name-as-directory tempdir))
103 (generated-autoload-file (expand-file-name "loaddefs.el" tempdir))) 107 (generated-autoload-file (expand-file-name "loaddefs.el" tempdir))
108 (process-environment (cons (format "BZR_LOG=%s" null-device)
109 process-environment)))
104 (unwind-protect 110 (unwind-protect
105 (progn 111 (progn
106 (call-process vc-bzr-program nil nil nil "init") 112 (call-process vc-bzr-program nil nil nil "init")