aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2024-06-23 22:17:37 +0300
committerEli Zaretskii2024-06-23 22:17:37 +0300
commit2b04effb13d2082358aed3a789cddc124dd7c4f2 (patch)
tree786d981b391d2f4bb0f68a2b820ce1fec3c6c901
parent6619aec6bca6d682be9a995f417e65bb0849d593 (diff)
downloademacs-2b04effb13d2082358aed3a789cddc124dd7c4f2.tar.gz
emacs-2b04effb13d2082358aed3a789cddc124dd7c4f2.zip
; * test/lisp/net/shr-tests.el (shr-test--rendering-check): Use UTF-8.
-rw-r--r--test/lisp/net/shr-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el
index f9fdb5eb5d3..54e1ac46ba5 100644
--- a/test/lisp/net/shr-tests.el
+++ b/test/lisp/net/shr-tests.el
@@ -51,7 +51,8 @@ Raise a test failure if the rendered buffer does not match NAME.txt.
51Append CONTEXT to the failure data, if non-nil." 51Append CONTEXT to the failure data, if non-nil."
52 (let ((text-file (file-name-concat (ert-resource-directory) (concat name ".txt"))) 52 (let ((text-file (file-name-concat (ert-resource-directory) (concat name ".txt")))
53 (html-file (file-name-concat (ert-resource-directory) (concat name ".html"))) 53 (html-file (file-name-concat (ert-resource-directory) (concat name ".html")))
54 (description (if context (format "%s (%s)" name context) name))) 54 (description (if context (format "%s (%s)" name context) name))
55 (coding-system-for-read 'utf-8))
55 (with-temp-buffer 56 (with-temp-buffer
56 (insert-file-contents html-file) 57 (insert-file-contents html-file)
57 (let ((dom (libxml-parse-html-region (point-min) (point-max))) 58 (let ((dom (libxml-parse-html-region (point-min) (point-max)))
@@ -155,7 +156,6 @@ settings, then once more for each (OPTION . VALUE) pair.")
155 (shr-width 80) 156 (shr-width 80)
156 (shr-use-fonts nil) 157 (shr-use-fonts nil)
157 (shr-image-animate nil) 158 (shr-image-animate nil)
158 (inhibit-message t)
159 (dom (libxml-parse-html-region (point-min) (point-max)))) 159 (dom (libxml-parse-html-region (point-min) (point-max))))
160 ;; Render the document. 160 ;; Render the document.
161 (erase-buffer) 161 (erase-buffer)