master 945667d1053: Fix image map test that could fail with certain DPI settings

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit 945667d1053bae6b8a320db2e472d5cfa94224c4
Author: David Ponce <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    Fix image map test that could fail with certain DPI settings
    
    * test/lisp/image-tests.el (image--compute-map-and-original-map):
    Specify the dimension of the test image in pixels which is a
    DPI-independent unit, contrary to pt.  (Bug#70093)
---
 test/lisp/image-tests.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lisp/image-tests.el b/test/lisp/image-tests.el
index 9818169c803..1d33e0490f5 100644
--- a/test/lisp/image-tests.el
+++ b/test/lisp/image-tests.el
@@ -218,7 +218,7 @@ corresponding coordinate in B.  When nil, TOLERANCE defaults to 5."
 (ert-deftest image--compute-map-and-original-map ()
   "Test `image--compute-map' and `image--compute-original-map'."
   (skip-unless (display-images-p))
-  (let* ((svg-string "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg width=\"125pt\" height=\"116pt\" viewBox=\"0.00 0.00 125.00 116.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><g transform=\"scale(1 1) rotate(0) translate(4 112)\"><polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-112 121,-112 121,4 -4,4\"/><a xlink:href=\"a\"><ellipse fill=\"none\" stroke=\"black\" cx=\"27\" cy=\"-90\" rx=\"18\" ry=\"18\"/><text [...]
+  (let* ((svg-string "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg width=\"167px\" height=\"155px\" viewBox=\"0 0 167 155\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><g transform=\"scale(1 1) rotate(0) translate(4 112)\"><polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-112 121,-112 121,4 -4,4\"/><a xlink:href=\"a\"><ellipse fill=\"none\" stroke=\"black\" cx=\"27\" cy=\"-90\" rx=\"18\" ry=\"18\"/><text text-anchor [...]
          (original-map
           '(((circle (41 . 29) . 24) "a" (help-echo "A"))
             ((rect (5 . 101) 77 . 149) "b" (help-echo "B"))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.