diff options
| author | Joakim Verona | 2011-11-22 15:46:22 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-11-22 15:46:22 +0100 |
| commit | a9c1e05adddf6011c61c0df582c5f2ed423f35c8 (patch) | |
| tree | 489fac119296416ba2f3530fd3bcb70efbbbdaa6 /test | |
| parent | 40bb789236e486a3f36eefb2840c293369ce2af3 (diff) | |
| parent | b5afc20930c91159a1cbf629bcaa7e251653dc74 (diff) | |
| download | emacs-a9c1e05adddf6011c61c0df582c5f2ed423f35c8.tar.gz emacs-a9c1e05adddf6011c61c0df582c5f2ed423f35c8.zip | |
upstream
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 8 | ||||
| -rw-r--r-- | test/cedet/semantic-utest-c.el | 2 | ||||
| -rw-r--r-- | test/cedet/semantic-utest.el | 4 | ||||
| -rw-r--r-- | test/cedet/tests/testsppreplaced.c | 5 | ||||
| -rw-r--r-- | test/rmailmm.el | 93 |
5 files changed, 106 insertions, 6 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 9afed6f5f90..04a70737d61 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-11-22 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * rmailmm.el: New file, split from lisp/mail/rmailmm.el. | ||
| 4 | |||
| 5 | 2011-11-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 6 | |||
| 7 | * cedet/semantic-utest-c.el (semantic-utest-c-comparisons): Fix typo. | ||
| 8 | |||
| 1 | 2011-11-16 Juanma Barranquero <lekktu@gmail.com> | 9 | 2011-11-16 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 10 | ||
| 3 | * automated/icalendar-tests.el (icalendar-tests--get-ical-event) | 11 | * automated/icalendar-tests.el (icalendar-tests--get-ical-event) |
diff --git a/test/cedet/semantic-utest-c.el b/test/cedet/semantic-utest-c.el index 946a818e70e..3fbd180290c 100644 --- a/test/cedet/semantic-utest-c.el +++ b/test/cedet/semantic-utest-c.el | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | (defvar semantic-utest-c-comparisons | 28 | (defvar semantic-utest-c-comparisons |
| 29 | '( ("testsppreplace.c" . "testsppreplaced.c") | 29 | '( ("testsppreplace.c" . "testsppreplaced.c") |
| 30 | ) | 30 | ) |
| 31 | "List of files to parse and compare against eachother.") | 31 | "List of files to parse and compare against each other.") |
| 32 | 32 | ||
| 33 | ;;; Code: | 33 | ;;; Code: |
| 34 | ;;;###autoload | 34 | ;;;###autoload |
diff --git a/test/cedet/semantic-utest.el b/test/cedet/semantic-utest.el index db737b60c6f..ff62040129d 100644 --- a/test/cedet/semantic-utest.el +++ b/test/cedet/semantic-utest.el | |||
| @@ -170,7 +170,7 @@ def fun2(a,b,c): #1 | |||
| 170 | 170 | ||
| 171 | 171 | ||
| 172 | ) | 172 | ) |
| 173 | ; "pyhon test case. notice that python is indentation sensitive | 173 | ; "python test case. notice that python is indentation sensitive |
| 174 | 174 | ||
| 175 | 175 | ||
| 176 | (defvar semantic-utest-Python-name-contents | 176 | (defvar semantic-utest-Python-name-contents |
| @@ -622,7 +622,7 @@ INSERTME is the text to be inserted after the deletion." | |||
| 622 | ) | 622 | ) |
| 623 | 623 | ||
| 624 | ;look at http://mfgames.com/linux/csharp-mode | 624 | ;look at http://mfgames.com/linux/csharp-mode |
| 625 | (defun semantic-utest-Csharp() ;; hmm i dont even know how to edit a scharp file. need a csharp mode implementation i suppose | 625 | (defun semantic-utest-Csharp() ;; hmm i don't even know how to edit a scharp file. need a csharp mode implementation i suppose |
| 626 | (interactive) | 626 | (interactive) |
| 627 | (if (fboundp 'csharp-mode) | 627 | (if (fboundp 'csharp-mode) |
| 628 | (semantic-utest-generic "C#" (semantic-utest-fname "csharptest.cs") semantic-utest-Csharp-buffer-contents semantic-utest-Csharp-name-contents '("fun2") "//1" "//deleted line") | 628 | (semantic-utest-generic "C#" (semantic-utest-fname "csharptest.cs") semantic-utest-Csharp-buffer-contents semantic-utest-Csharp-name-contents '("fun2") "//1" "//deleted line") |
diff --git a/test/cedet/tests/testsppreplaced.c b/test/cedet/tests/testsppreplaced.c index 5098715081f..58d1ac2b684 100644 --- a/test/cedet/tests/testsppreplaced.c +++ b/test/cedet/tests/testsppreplaced.c | |||
| @@ -69,7 +69,7 @@ int continuation_symbol () { }; | |||
| 69 | 69 | ||
| 70 | int tail (int q) {} | 70 | int tail (int q) {} |
| 71 | 71 | ||
| 72 | /* TEST: macros used impropertly. */ | 72 | /* TEST: macros used improperly */ |
| 73 | 73 | ||
| 74 | int tail_fcn(int q); | 74 | int tail_fcn(int q); |
| 75 | 75 | ||
| @@ -98,7 +98,7 @@ namespace foo { namespace bar { | |||
| 98 | 98 | ||
| 99 | int foo_bar_func(int a) { } | 99 | int foo_bar_func(int a) { } |
| 100 | 100 | ||
| 101 | } | 101 | } |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | /* TEST: The VC++ macro hack. */ | 104 | /* TEST: The VC++ macro hack. */ |
| @@ -115,4 +115,3 @@ int MACROA () { | |||
| 115 | 115 | ||
| 116 | 116 | ||
| 117 | /* End */ | 117 | /* End */ |
| 118 | |||
diff --git a/test/rmailmm.el b/test/rmailmm.el new file mode 100644 index 00000000000..97577ee35cb --- /dev/null +++ b/test/rmailmm.el | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | ;;; rmailmm.el --- tests for mail/rmailmm.el | ||
| 2 | |||
| 3 | ;; Copyright (C) 2006-2011 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | ;; This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | ;; GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | ;; it under the terms of the GNU General Public License as published by | ||
| 9 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 10 | ;; (at your option) any later version. | ||
| 11 | |||
| 12 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | ;; GNU General Public License for more details. | ||
| 16 | |||
| 17 | ;; You should have received a copy of the GNU General Public License | ||
| 18 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | |||
| 20 | ;;; Commentary: | ||
| 21 | |||
| 22 | ;;; Code: | ||
| 23 | |||
| 24 | (require 'rmailmm) | ||
| 25 | |||
| 26 | (defun rmailmm-test-handler () | ||
| 27 | "Test of a mail using no MIME parts at all." | ||
| 28 | (let ((mail "To: alex@gnu.org | ||
| 29 | Content-Type: text/plain; charset=koi8-r | ||
| 30 | Content-Transfer-Encoding: 8bit | ||
| 31 | MIME-Version: 1.0 | ||
| 32 | |||
| 33 | \372\304\322\301\327\323\324\327\325\312\324\305\41")) | ||
| 34 | (switch-to-buffer (get-buffer-create "*test*")) | ||
| 35 | (erase-buffer) | ||
| 36 | (set-buffer-multibyte nil) | ||
| 37 | (insert mail) | ||
| 38 | (rmail-mime-show t) | ||
| 39 | (set-buffer-multibyte t))) | ||
| 40 | |||
| 41 | (defun rmailmm-test-bulk-handler () | ||
| 42 | "Test of a mail used as an example in RFC 2183." | ||
| 43 | (let ((mail "Content-Type: image/jpeg | ||
| 44 | Content-Disposition: attachment; filename=genome.jpeg; | ||
| 45 | modification-date=\"Wed, 12 Feb 1997 16:29:51 -0500\"; | ||
| 46 | Content-Description: a complete map of the human genome | ||
| 47 | Content-Transfer-Encoding: base64 | ||
| 48 | |||
| 49 | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAAAZQ | ||
| 50 | TFRF////AAAAVcLTfgAAAPZJREFUeNq9ldsOwzAIQ+3//+l1WlvA5ZLsoUiTto4TB+ISoAjy | ||
| 51 | +ITfRBfcAmgRFFeAm+J6uhdKdFhFWUgDkFsK0oUp/9G2//Kj7Jx+5tSKOdBscgUYiKHRS/me | ||
| 52 | WATQdRUvAK0Bnmshmtn79PpaLBbbOZkjKvRnjRZoRswOkG1wFchKew2g9wXVJVZL/m4+B+vv | ||
| 53 | 9AxQQR2Q33SgAYJzzVACdAWjAfRYzYFO9n6SLnydtQHSMxYDMAKqZ/8FS/lTK+zuq3CtK64L | ||
| 54 | UDwbgUEAUmk2Zyg101d6PhCDySgAvTvDgKiuOrc4dLxUb7UMnhGIexyI+d6U+ABuNAP4Simx | ||
| 55 | lgAAAABJRU5ErkJggg== | ||
| 56 | ")) | ||
| 57 | (switch-to-buffer (get-buffer-create "*test*")) | ||
| 58 | (erase-buffer) | ||
| 59 | (insert mail) | ||
| 60 | (rmail-mime-show))) | ||
| 61 | |||
| 62 | (defun rmailmm-test-multipart-handler () | ||
| 63 | "Test of a mail used as an example in RFC 2046." | ||
| 64 | (let ((mail "From: Nathaniel Borenstein <nsb@bellcore.com> | ||
| 65 | To: Ned Freed <ned@innosoft.com> | ||
| 66 | Date: Sun, 21 Mar 1993 23:56:48 -0800 (PST) | ||
| 67 | Subject: Sample message | ||
| 68 | MIME-Version: 1.0 | ||
| 69 | Content-type: multipart/mixed; boundary=\"simple boundary\" | ||
| 70 | |||
| 71 | This is the preamble. It is to be ignored, though it | ||
| 72 | is a handy place for composition agents to include an | ||
| 73 | explanatory note to non-MIME conformant readers. | ||
| 74 | |||
| 75 | --simple boundary | ||
| 76 | |||
| 77 | This is implicitly typed plain US-ASCII text. | ||
| 78 | It does NOT end with a linebreak. | ||
| 79 | --simple boundary | ||
| 80 | Content-type: text/plain; charset=us-ascii | ||
| 81 | |||
| 82 | This is explicitly typed plain US-ASCII text. | ||
| 83 | It DOES end with a linebreak. | ||
| 84 | |||
| 85 | --simple boundary-- | ||
| 86 | |||
| 87 | This is the epilogue. It is also to be ignored.")) | ||
| 88 | (switch-to-buffer (get-buffer-create "*test*")) | ||
| 89 | (erase-buffer) | ||
| 90 | (insert mail) | ||
| 91 | (rmail-mime-show t))) | ||
| 92 | |||
| 93 | ;;; rmailmm.el ends here | ||