diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/shr-tests.el | 14 | ||||
| -rw-r--r-- | test/lisp/which-key-tests.el | 3 | ||||
| -rw-r--r-- | test/src/comp-resources/comp-test-funcs.el | 2 | ||||
| -rw-r--r-- | test/src/comp-tests.el | 2 |
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 | ) |