[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex a28aea0 01/57: Add test for my last commit
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex a28aea0 01/57: Add test for my last commit |
Date: |
Tue, 25 Jul 2017 14:02:26 -0400 (EDT) |
branch: externals/auctex
commit a28aea0a1562b3c6d9e47ee2a4ba14005dae289a
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Add test for my last commit
* tests/japanese/error-parsing.el: New file.
---
tests/japanese/error-parsing.el | 64 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
diff --git a/tests/japanese/error-parsing.el b/tests/japanese/error-parsing.el
new file mode 100644
index 0000000..c2f8f90
--- /dev/null
+++ b/tests/japanese/error-parsing.el
@@ -0,0 +1,64 @@
+;;; error-parsing.el --- tests for error parsing
+
+;; Copyright (C) 2017 Free Software Foundation, Inc.
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING. If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Code:
+
+(require 'ert)
+(require 'tex-buf)
+(setq japanese-TeX-error-messages t)
+(require 'tex-jp)
+
+(ert-deftest japanese-TeX-help-message ()
+ "Test the fallback behavior of `TeX-help-error'.
+It should pick up error messages from the log file even if
+tex-jp.el modified `TeX-error-description-list'."
+ (should (let* ((dummyfile (make-temp-file "japanese-TeX-ert"))
+ (logfile (concat dummyfile ".log")))
+ (find-file logfile)
+ (insert "\
+./errorsamp.tex:3: EROOR NEVER COVERED BY TeX-error-description-list.
+l.3 }
+
+FOO BAR
+HOGE FUGA
+")
+ (save-buffer 0)
+ (find-file dummyfile)
+ ;; Actually, the contents of dummyfile is irrelavent to
+ ;; this test. It is only used to make the log file name
+ ;; which is analysed in `TeX-help-error' to be
+ ;; predictable.
+ (let ((TeX-command-buffer (current-buffer)))
+ (TeX-help-error
+ "EROOR NEVER COVERED BY TeX-error-description-list."
+ "" (current-buffer) 'error))
+ (delete-other-windows)
+ (kill-buffer (get-file-buffer logfile))
+ (delete-file logfile)
+ (kill-buffer (get-file-buffer dummyfile))
+ (delete-file dummyfile)
+ (set-buffer "*TeX Help*")
+ (goto-char (point-min))
+ (prog1
+ (search-forward "From the .log file...")
+ (kill-buffer)))))
+
+;;; error-parsing.el ends here
- [elpa] externals/auctex updated (50798f3 -> 32f71f6), Tassilo Horn, 2017/07/25
- [elpa] externals/auctex c87ac67 03/57: Add the select environment and related macros to exam style., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex a28aea0 01/57: Add test for my last commit,
Tassilo Horn <=
- [elpa] externals/auctex cf6480c 07/57: Make preview.sty compatible with recent luatex, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 581002f 08/57: Add LaTeX core command \oldstylenums, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex d412083 10/57: * tex-ispell.el (TeX-ispell-skip-cmds-list): Add \addlinespace., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex f5cf886 14/57: Add support for plus sign in macro syntax specification list, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 5ea2221 19/57: * latex/preview.dtx: Adjust modification date for CTAN., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex ef7e48b 12/57: Consider the return value of `assq-delete-all', Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 272c9d6 15/57: Improve exclusion of reserved characters from command matches, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 4ddee01 38/57: * style/beamer.el ("beamer"): Query for optional argument after \pause., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex d2dfab6 30/57: Fix indentation in ConTeXt mode after indented optional argument, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 0c03e4a 36/57: Catch expl3 warnings, Tassilo Horn, 2017/07/25