diff options
| author | Glenn Morris | 2014-03-21 12:04:57 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-03-21 12:04:57 -0700 |
| commit | 5671dc515946c8a27b09d060bc34345d42a8fa6e (patch) | |
| tree | 54668c08879422e9c9d8c8c7a9e612d357971a49 /test | |
| parent | 26e91130ed0611a1074d0cac5880c065f9ba69c8 (diff) | |
| parent | 1e92a8a3aa7958ba699cd0430be4f23aff6c4c01 (diff) | |
| download | emacs-5671dc515946c8a27b09d060bc34345d42a8fa6e.tar.gz emacs-5671dc515946c8a27b09d060bc34345d42a8fa6e.zip | |
Merge from emacs-24; up to 2014-03-21T08:51:02Z!eliz@gnu.org
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/data/package/archive-contents | 4 | ||||
| -rw-r--r-- | test/automated/data/package/simple-two-depend-1.1.el | 17 | ||||
| -rw-r--r-- | test/automated/package-test.el | 12 | ||||
| -rw-r--r-- | test/indent/ruby.rb | 17 |
4 files changed, 49 insertions, 1 deletions
diff --git a/test/automated/data/package/archive-contents b/test/automated/data/package/archive-contents index 8d6f3226ae6..a6df6b8086e 100644 --- a/test/automated/data/package/archive-contents +++ b/test/automated/data/package/archive-contents | |||
| @@ -6,6 +6,10 @@ | |||
| 6 | (simple-depend . | 6 | (simple-depend . |
| 7 | [(1 0) | 7 | [(1 0) |
| 8 | ((simple-single (1 3))) "A single-file package with a dependency." single]) | 8 | ((simple-single (1 3))) "A single-file package with a dependency." single]) |
| 9 | (simple-two-depend . | ||
| 10 | [(1 1) | ||
| 11 | ((simple-depend (1 0)) (simple-single (1 3))) | ||
| 12 | "A single-file package with two dependencies." single]) | ||
| 9 | (multi-file . | 13 | (multi-file . |
| 10 | [(0 2 3) | 14 | [(0 2 3) |
| 11 | nil "Example of a multi-file tar package" tar | 15 | nil "Example of a multi-file tar package" tar |
diff --git a/test/automated/data/package/simple-two-depend-1.1.el b/test/automated/data/package/simple-two-depend-1.1.el new file mode 100644 index 00000000000..9cfe5c0d4e2 --- /dev/null +++ b/test/automated/data/package/simple-two-depend-1.1.el | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | ;;; simple-two-depend.el --- A single-file package with two dependencies. | ||
| 2 | |||
| 3 | ;; Author: J. R. Hacker <jrh@example.com> | ||
| 4 | ;; Version: 1.1 | ||
| 5 | ;; Keywords: frobnicate | ||
| 6 | ;; Package-Requires: ((simple-depend "1.0") (simple-single "1.3")) | ||
| 7 | |||
| 8 | ;;; Commentary: | ||
| 9 | |||
| 10 | ;; Depends on two another packages. | ||
| 11 | |||
| 12 | ;;; Code: | ||
| 13 | |||
| 14 | (defvar simple-two-depend "Value" | ||
| 15 | "Some trivial code") | ||
| 16 | |||
| 17 | ;;; simple-two-depend.el ends here | ||
diff --git a/test/automated/package-test.el b/test/automated/package-test.el index 34a3ce25a48..72422a8684b 100644 --- a/test/automated/package-test.el +++ b/test/automated/package-test.el | |||
| @@ -203,12 +203,22 @@ Must called from within a `tar-mode' buffer." | |||
| 203 | (should (package-installed-p 'simple-single)) | 203 | (should (package-installed-p 'simple-single)) |
| 204 | (should (package-installed-p 'simple-depend)))) | 204 | (should (package-installed-p 'simple-depend)))) |
| 205 | 205 | ||
| 206 | (ert-deftest package-test-install-two-dependencies () | ||
| 207 | "Install a package which includes a dependency." | ||
| 208 | (with-package-test () | ||
| 209 | (package-initialize) | ||
| 210 | (package-refresh-contents) | ||
| 211 | (package-install 'simple-two-depend) | ||
| 212 | (should (package-installed-p 'simple-single)) | ||
| 213 | (should (package-installed-p 'simple-depend)) | ||
| 214 | (should (package-installed-p 'simple-two-depend)))) | ||
| 215 | |||
| 206 | (ert-deftest package-test-refresh-contents () | 216 | (ert-deftest package-test-refresh-contents () |
| 207 | "Parse an \"archive-contents\" file." | 217 | "Parse an \"archive-contents\" file." |
| 208 | (with-package-test () | 218 | (with-package-test () |
| 209 | (package-initialize) | 219 | (package-initialize) |
| 210 | (package-refresh-contents) | 220 | (package-refresh-contents) |
| 211 | (should (eq 3 (length package-archive-contents))))) | 221 | (should (eq 4 (length package-archive-contents))))) |
| 212 | 222 | ||
| 213 | (ert-deftest package-test-install-single-from-archive () | 223 | (ert-deftest package-test-install-single-from-archive () |
| 214 | "Install a single package from a package archive." | 224 | "Install a single package from a package archive." |
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 2ca0e482797..99482433145 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -379,3 +379,20 @@ foo(:bar => | |||
| 379 | 'd' => %w(e f) | 379 | 'd' => %w(e f) |
| 380 | } | 380 | } |
| 381 | } | 381 | } |
| 382 | |||
| 383 | # Bug#17050 | ||
| 384 | |||
| 385 | return render json: { | ||
| 386 | errors: { base: [message] }, | ||
| 387 | copying: copying | ||
| 388 | }, | ||
| 389 | status: 400 | ||
| 390 | |||
| 391 | top test( | ||
| 392 | some, | ||
| 393 | top, | ||
| 394 | test) | ||
| 395 | |||
| 396 | foo bar, { | ||
| 397 | tee: qux | ||
| 398 | } | ||