[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 01224b6 11/42: Add test for my commit on Aug 18
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 01224b6 11/42: Add test for my commit on Aug 18 |
Date: |
Thu, 23 Nov 2017 06:06:09 -0500 (EST) |
branch: externals/auctex
commit 01224b600d1ac47d787b2adfd88071b2a6a5f781
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Add test for my commit on Aug 18
* tests/japanese/parse-timing-test.tex:
* tests/japanese/parse-timing.el:
New file.
---
tests/japanese/parse-timing-test.tex | 2 ++
tests/japanese/parse-timing.el | 63 ++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
diff --git a/tests/japanese/parse-timing-test.tex
b/tests/japanese/parse-timing-test.tex
new file mode 100644
index 0000000..c995cf5
--- /dev/null
+++ b/tests/japanese/parse-timing-test.tex
@@ -0,0 +1,2 @@
+\documentclass{jarticle}
+\usepackage{amsmath}
diff --git a/tests/japanese/parse-timing.el b/tests/japanese/parse-timing.el
new file mode 100644
index 0000000..c9f5243
--- /dev/null
+++ b/tests/japanese/parse-timing.el
@@ -0,0 +1,63 @@
+;;; parse-timing.el --- tests for parse timing
+
+;; 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.
+
+;;; Commentary:
+;; In AUCTeX, style hooks must not be executed too early. In
+;; particular, they should not be called within the major mode hook
+;; because the required settings are sometimes not ready at that
+;; timing. A difficult point is that many AUCTeX functions implicitly
+;; call `TeX-update-style', which eventually calls style hooks. Thus
+;; a complicated hook sometimes triggers style hooks unintentionally.
+;; Such cases suits for detection via regression tests.
+
+;;; Code:
+
+(require 'ert)
+(require 'tex-jp)
+
+(defun AUCTeX-set-ert-path (&rest sym-val)
+ "Set first element of SYM-VAL to the next one, and so on.
+
+The value is the path to the test file, make sure it is expanded
+in the right directory even when the ERT test from the command
+line and from another directory."
+ (while sym-val
+ (set (pop sym-val)
+ (expand-file-name (pop sym-val)
+ (when load-file-name
+ (file-name-directory load-file-name))))))
+(AUCTeX-set-ert-path
+ 'parse-timing
+ "parse-timing-test.tex")
+
+(ert-deftest japanese-TeX-style-hook-timing ()
+ "Test style hooks are not called too early."
+ (let ((TeX-parse-self t)
+ (TeX-master t)
+ (LaTeX-mode-hook '(japanese-latex-mode-initialization
+ turn-on-reftex)))
+ (find-file parse-timing)
+ (should (memq 'AMSTeX
+ (get reftex-docstruct-symbol
+ 'reftex-label-alist-style)))
+ (kill-buffer)))
+
+;;; parse-timing.el ends here
- [elpa] externals/auctex updated (c576c01 -> 5f007f1), Tassilo Horn, 2017/11/23
- [elpa] externals/auctex f73ccfe 03/42: * style/amsthm.el ("amsthm"): Use `LaTeX-amsthm-env-label'., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 8337345 02/42: ; * style/minted.el: Fix header., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 17d86b5 01/42: Conform to elisp coding convention in context.el, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 90a2c29 06/42: Use #' to quote function names, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex f3180f8 10/42: Fix doc string and indent, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 2ed9d93 09/42: Add %(PDF) when undumped format is used in preview-latex, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 433b5f9 15/42: Parse package/class option with comments correctly, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 01224b6 11/42: Add test for my commit on Aug 18,
Tassilo Horn <=
- [elpa] externals/auctex bfaa079 14/42: Conform to elisp coding convention, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 075eab7 07/42: Improvements for tex-info.el, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex aaf22a9 08/42: Add new style/arabxetex.el, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex cf0ff70 16/42: Add test for infinite loop, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 9e5e5f6 20/42: ; * tex.el (TeX-doc-backend-alist): Use `TeX-search-files-by-type'., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b43ec94 04/42: * style/XCharter.el ("XCharter"): Update to package v1.094 from 2017/08/08., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex ff07544 05/42: Delay setting Japanese TeX engine in `japanese-latex-mode', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 6dcf0e1 18/42: Add a new option for evince compatible viewer., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 7863f42 13/42: Prevent possible infinite loop, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex cfad977 17/42: Make correct extensions are returned, Tassilo Horn, 2017/11/23