aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPo Lu2024-06-30 10:06:09 +0800
committerPo Lu2024-06-30 10:06:09 +0800
commite2561e267fd2eb37b140a293baec79096f03290b (patch)
tree937291ce231a708b51541bbce5f76151b344a0e0 /test
parentf0f883da4b410c606b46b61c80b874ead08335ea (diff)
parent72cf9964f3c0fd63332884b8145399f1784de7f1 (diff)
downloademacs-e2561e267fd2eb37b140a293baec79096f03290b.tar.gz
emacs-e2561e267fd2eb37b140a293baec79096f03290b.zip
Merge from savannah/emacs-30
72cf9964f3c Inaccuracy in efaq.texi fc48e9e8ed5 ; Fix typos in DOS Makefile scripts 9b8d754579f ; * etc/NEWS: Explain Nextstep. 8819e5a45d5 Fix treesit crash (bug#71681) eaf2dc96c1f ; Fix SHR test on MS-Windows 57880f597c5 Delete redundant mention of `with-eval-after-load' ea8ce984342 * doc/misc/efaq.texi (New in Emacs 30): Fix typos. 45a20d781a9 ; Fix typos in symbols d95f039af43 Document security fixes in FAQ d063af203c8 Add "New in Emacs 30" to FAQ ca6b484162b ; * etc/NEWS: Move "Minibuffer and Completions" 35c46663e49 ; * etc/NEWS: Move item to "Lisp Changes". 0515b38d289 ; * etc/NEWS: Move keyboard macro items closer together. 22af3a71039 ; * etc/NEWS: More copy-edits. 000ef8876ae ; * etc/NEWS: Move items to "Incompatible Lisp Changes". 4088dc8e4ce ; * etc/NEWS: Rearrange "Incompatible Lisp Changes". 179800f36bb ; * lisp/epg.el (epg--start): Add commentary about encoding. 73898f0214c Fix non-ASCII filename operatiion on EasyPG (bug#71500) a65b6aac6b5 Silence warning with global minor mode :predicate f5f7343ac41 ; * etc/NEWS: Move an item to "Startup Changes" c95066bf188 ; * etc/NEWS: Move some Lisp items to better place. bf7db88ce1f ; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1" 000424eb9eb ; * etc/NEWS: Make touch screen support more prominent. 5b5671587fb ; * etc/NEWS: Rearrange "Changes in Emacs 30.1". 31124abdefe ; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777). 44f269d6e60 Fix: make 'xwidget-webkit-scroll-backward' scroll backwards 358085997c6 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/... 736b7cad406 Add jsdoc support to php-ts-mode in <script> element 5f3d964e397 Update to Transient v0.7.2-4-gf75bc48d # Conflicts: # etc/NEWS
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/shr-tests.el14
-rw-r--r--test/lisp/which-key-tests.el3
-rw-r--r--test/src/comp-resources/comp-test-funcs.el2
-rw-r--r--test/src/comp-tests.el2
4 files changed, 12 insertions, 9 deletions
diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el
index 4864fc488e2..54d85ee95f9 100644
--- a/test/lisp/net/shr-tests.el
+++ b/test/lisp/net/shr-tests.el
@@ -136,13 +136,15 @@ settings, then once more for each (OPTION . VALUE) pair.")
136(ert-deftest shr-test/zoom-image () 136(ert-deftest shr-test/zoom-image ()
137 "Test that `shr-zoom-image' properly replaces the original image." 137 "Test that `shr-zoom-image' properly replaces the original image."
138 (skip-unless (bound-and-true-p image-types)) 138 (skip-unless (bound-and-true-p image-types))
139 (let ((image (expand-file-name "data/image/blank-100x200.png" 139 (let* ((image (expand-file-name "data/image/blank-100x200.png"
140 (getenv "EMACS_TEST_DIRECTORY")))) 140 (getenv "EMACS_TEST_DIRECTORY")))
141 (image-url (concat "file://" (if (string-prefix-p "/" image)
142 image (concat "/" image)))))
141 (dolist (alt '(nil "" "nothing to see here")) 143 (dolist (alt '(nil "" "nothing to see here"))
142 (with-temp-buffer 144 (with-temp-buffer
143 (ert-info ((format "image with alt=%S" alt)) 145 (ert-info ((format "image with alt=%S" alt))
144 (let ((attrs (if alt (format " alt=\"%s\"" alt) ""))) 146 (let ((attrs (if alt (format " alt=\"%s\"" alt) "")))
145 (insert (format "<img src=\"file://%s\" %s" image attrs))) 147 (insert (format "<img src=\"%s\" %s" image-url attrs)))
146 (cl-letf* (;; Pretend we're a graphical display. 148 (cl-letf* (;; Pretend we're a graphical display.
147 ((symbol-function 'display-graphic-p) #'always) 149 ((symbol-function 'display-graphic-p) #'always)
148 ((symbol-function 'url-queue-retrieve) 150 ((symbol-function 'url-queue-retrieve)
@@ -161,11 +163,13 @@ settings, then once more for each (OPTION . VALUE) pair.")
161 ;; Render the document. 163 ;; Render the document.
162 (erase-buffer) 164 (erase-buffer)
163 (shr-insert-document dom) 165 (shr-insert-document dom)
164 (shr-test-wait-for (lambda () (= put-image-calls 1))) 166 (shr-test-wait-for (lambda () (= put-image-calls 1))
167 "Timed out waiting for initial load")
165 ;; Now zoom the image. 168 ;; Now zoom the image.
166 (goto-char (point-min)) 169 (goto-char (point-min))
167 (shr-zoom-image) 170 (shr-zoom-image)
168 (shr-test-wait-for (lambda () (= put-image-calls 2))) 171 (shr-test-wait-for (lambda () (= put-image-calls 2))
172 "Timed out waiting to zoom image")
169 ;; Check that we got a sliced image. 173 ;; Check that we got a sliced image.
170 (let ((slice-count 0)) 174 (let ((slice-count 0))
171 (goto-char (point-min)) 175 (goto-char (point-min))
diff --git a/test/lisp/which-key-tests.el b/test/lisp/which-key-tests.el
index 1f2b1965ec3..3b42a7bd504 100644
--- a/test/lisp/which-key-tests.el
+++ b/test/lisp/which-key-tests.el
@@ -53,8 +53,7 @@
53 '(("C-a" . "which-key-test--named-map")))))) 53 '(("C-a" . "which-key-test--named-map"))))))
54 54
55(ert-deftest which-key-test--prefix-declaration () 55(ert-deftest which-key-test--prefix-declaration ()
56 "Test `which-key-declare-prefixes' and 56 ;; See Bug #109.
57`which-key-declare-prefixes-for-mode'. See Bug #109."
58 (let* ((major-mode 'test-mode) 57 (let* ((major-mode 'test-mode)
59 which-key-replacement-alist) 58 which-key-replacement-alist)
60 (which-key-add-key-based-replacements 59 (which-key-add-key-based-replacements
diff --git a/test/src/comp-resources/comp-test-funcs.el b/test/src/comp-resources/comp-test-funcs.el
index 54f339f6373..084fcd8c9db 100644
--- a/test/src/comp-resources/comp-test-funcs.el
+++ b/test/src/comp-resources/comp-test-funcs.el
@@ -361,7 +361,7 @@
361 2)) 361 2))
362 362
363(defun comp-test-copy-insn-f (insn) 363(defun comp-test-copy-insn-f (insn)
364 ;; From `comp-copy-insn'. 364 ;; From `comp--copy-insn'.
365 (if (consp insn) 365 (if (consp insn)
366 (let (result) 366 (let (result)
367 (while (consp insn) 367 (while (consp insn)
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index dffb7097a3e..6744f14435b 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -1320,7 +1320,7 @@ Return a list of results."
1320 (5 (message "five"))) 1320 (5 (message "five")))
1321 x) 1321 x)
1322 't 1322 't
1323 ;; FIXME improve `comp-cond-cstrs-target-mvar' to cross block 1323 ;; FIXME improve `comp--cond-cstrs-target-mvar' to cross block
1324 ;; boundary if necessary as this should return: 1324 ;; boundary if necessary as this should return:
1325 ;; (or (integer 1 1) (integer 5 5)) 1325 ;; (or (integer 1 1) (integer 5 5))
1326 ) 1326 )