aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNoam Postavsky2019-06-04 21:08:26 -0400
committerNoam Postavsky2019-06-05 09:10:23 -0400
commit7ad5e3915fe0fad7c8053b53cab1aa7aa74193fe (patch)
treeb7e3bc5f5a4d05951a3555414ceaf43ac22d5e1e /test
parentdec148939aad8391875e73784af2bcb0a01100bb (diff)
downloademacs-7ad5e3915fe0fad7c8053b53cab1aa7aa74193fe.tar.gz
emacs-7ad5e3915fe0fad7c8053b53cab1aa7aa74193fe.zip
; Add test for Bug#36092
* test/lisp/nxml/nxml-mode-tests.el (nxml-mode->-after-quote): New test.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/nxml/nxml-mode-tests.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lisp/nxml/nxml-mode-tests.el b/test/lisp/nxml/nxml-mode-tests.el
index 70816bb9de0..53416b4280c 100644
--- a/test/lisp/nxml/nxml-mode-tests.el
+++ b/test/lisp/nxml/nxml-mode-tests.el
@@ -99,5 +99,20 @@
99 (should (nth 4 (syntax-ppss))) 99 (should (nth 4 (syntax-ppss)))
100 (search-forward "comment3"))) 100 (search-forward "comment3")))
101 101
102(ert-deftest nxml-mode->-after-quote ()
103 "Reduction from Bug#36092."
104 (with-temp-buffer
105 (insert "<root>\n"
106 (make-string 1794 ?a) "\n"
107 "'>"
108 (make-string 196 ?a) "\n"
109 "</root>")
110 (nxml-mode)
111 (syntax-propertize 2001)
112 (syntax-propertize (point-max)) ; Triggered an assert failure.
113 ;; Check that last tag is parsed as a tag.
114 (should (= 1 (- (car (syntax-ppss (1- (point-max))))
115 (car (syntax-ppss (point-max))))))))
116
102(provide 'nxml-mode-tests) 117(provide 'nxml-mode-tests)
103;;; nxml-mode-tests.el ends here 118;;; nxml-mode-tests.el ends here