aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Eggert2017-10-01 21:58:52 -0700
committerPaul Eggert2017-10-01 21:58:52 -0700
commit4829a3b033b119b088947d14b73efc197b2547fa (patch)
treeef9a96d2fa02c559ce69ff3ac9a272af84e5f6e9 /test
parentee3024c70d2974b59ecdd04b75d18d7258262e70 (diff)
parent5172fa02cccaab2500ecf85aaf65b8deed54d42e (diff)
downloademacs-4829a3b033b119b088947d14b73efc197b2547fa.tar.gz
emacs-4829a3b033b119b088947d14b73efc197b2547fa.zip
Merge from origin/emacs-26
5172fa02cc Prefer HTTPS to HTTP for gnu.org 8cdd8b920a Merge from Gnulib 60b7668b89 Keep eww buffer current when looking up CSS on MDN bd49b6f1b3 Workaround for faulty localtime() under macOS 10.6 913808e224 Doc amendment for syntax-ppss. 98dc91fda8 Remove incorrect NEWS entry about 'find-library' 539d8626cd Remove inadvertent changes to syntax.texi in last commit. 8c18dcbc78 Amend documentation for text-quoting-style becoming a user... 5f76ac150a Make the value nil in text-quoting-style mean what it does... d5e4e004fa Make text-quoting-style customizable. Introduce t and new... 1ba3471b9b eshell.texi improvements 7abb5c3960 Fix ns-win.el on GNUstep 07ea5ef99a Fix reference style in org.texi b03b4f6d79 Improve handling of iconification of child frames (Bug#28611) ba9139c501 Revert "Don't lose arguments to eshell aliases (Bug#27954)" 43fac3beae Make "unsafe directory" error message more informative (Bu... c59ddb2120 Fix slot typecheck in eieio-persistent 8b2ab5014b Fix semantic-ia-fast-jump 5b45e7e1c3 Bind vc-region-history f172894595 Exit macro definition on undefined keys 289fe6c0d1 Reset bidi-paragraph-direction on article rendering a4f7518817 Fix url-http use of url-current-object 4a755ed421 Avoid assertions in vc-hg.el on MS-Windows cb93a6ce72 Improve documentation of 'copy-sequence' 200ef6f721 Minor update of ack.texi cb407d3e87 * doc/emacs/emacs.texi (Acknowledgments): Add more contrib... 82b6c765ff Improve indexing of multi-file/buffer Isearch commands 645ff6c702 Add CAM02 JCh and CAM02-UCS J'a'b' conversions 157007b58e Fix uses of @kindex in the Emacs manual 63a45e8837 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/e... 3ab2f9bbb9 Merge from gnulib cbc8324488 Prefer HTTPS to HTTP for gnu.org bbda601d1d ; Spelling fixes 695cf5300b Wait for frame visibility with timeout in w32term too e1f6e3127a Bring back the busy wait after x_make_frame_visible (Bug#2... bccf635217 ; * src/gtkutil.c (xg_check_special_colors): Add another G... f428757cdb Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/e... 26d58f0c58 ; Standardize license notices 73dba0f466 Fix last doc string change in simple.el
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog.12
-rw-r--r--test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el22
-rw-r--r--test/lisp/replace-tests.el4
-rw-r--r--test/lisp/vc/vc-bzr-tests.el2
-rw-r--r--test/manual/etags/c-src/emacs/src/lisp.h2
-rw-r--r--test/src/lcms-tests.el44
6 files changed, 71 insertions, 5 deletions
diff --git a/test/ChangeLog.1 b/test/ChangeLog.1
index d244798038f..7b228abd1d9 100644
--- a/test/ChangeLog.1
+++ b/test/ChangeLog.1
@@ -1307,7 +1307,7 @@
1307 * automated/undo-tests.el (undo-test-in-region-not-most-recent): 1307 * automated/undo-tests.el (undo-test-in-region-not-most-recent):
1308 Add new test of undo in region. 1308 Add new test of undo in region.
1309 (undo-test-in-region-eob): Add test case described at 1309 (undo-test-in-region-eob): Add test case described at
1310 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16411 1310 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=16411
1311 1311
13122014-02-28 Michael Albinus <michael.albinus@gmx.de> 13122014-02-28 Michael Albinus <michael.albinus@gmx.de>
1313 1313
diff --git a/test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el b/test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
index e2cff3fbcaa..738711c9c84 100644
--- a/test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
+++ b/test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
@@ -195,6 +195,28 @@ persistent class.")
195 (persist-test-save-and-compare persist-woss) 195 (persist-test-save-and-compare persist-woss)
196 (delete-file (oref persist-woss file)))) 196 (delete-file (oref persist-woss file))))
197 197
198;; A slot that can contain one of two different classes, to exercise
199;; the `or' slot type.
200
201(defclass persistent-random-class ()
202 ())
203
204(defclass persistent-multiclass-slot (eieio-persistent)
205 ((slot1 :initarg :slot1
206 :type (or persistent-random-class null persist-not-persistent))
207 (slot2 :initarg :slot2
208 :type (or persist-not-persistent persist-random-class null))))
209
210(ert-deftest eieio-test-multiple-class-slot ()
211 (let ((persist
212 (persistent-multiclass-slot "random string"
213 :slot1 (persistent-random-class)
214 :slot2 (persist-not-persistent)
215 :file (concat default-directory "test-ps5.pt"))))
216 (unwind-protect
217 (persist-test-save-and-compare persist)
218 (ignore-errors (delete-file (oref persist file))))))
219
198;;; Slot with a list of Objects 220;;; Slot with a list of Objects
199;; 221;;
200;; A slot that contains another object that isn't persistent 222;; A slot that contains another object that isn't persistent
diff --git a/test/lisp/replace-tests.el b/test/lisp/replace-tests.el
index b98406d8ef8..06b6dd8a0a9 100644
--- a/test/lisp/replace-tests.el
+++ b/test/lisp/replace-tests.el
@@ -54,7 +54,7 @@ fx
54 6:fx 54 6:fx
55") 55")
56 ;; * Test multi-line matches, this is the first test from 56 ;; * Test multi-line matches, this is the first test from
57 ;; http://lists.gnu.org/archive/html/emacs-devel/2005-06/msg01008.html 57 ;; https://lists.gnu.org/archive/html/emacs-devel/2005-06/msg01008.html
58 ;; where numbers are replaced with letters. 58 ;; where numbers are replaced with letters.
59 ("a\na" 0 "\ 59 ("a\na" 0 "\
60a 60a
@@ -70,7 +70,7 @@ a
70 :a 70 :a
71") 71")
72 ;; * Test multi-line matches, this is the second test from 72 ;; * Test multi-line matches, this is the second test from
73 ;; http://lists.gnu.org/archive/html/emacs-devel/2005-06/msg01008.html 73 ;; https://lists.gnu.org/archive/html/emacs-devel/2005-06/msg01008.html
74 ;; where numbers are replaced with letters. 74 ;; where numbers are replaced with letters.
75 ("a\nb" 0 "\ 75 ("a\nb" 0 "\
76a 76a
diff --git a/test/lisp/vc/vc-bzr-tests.el b/test/lisp/vc/vc-bzr-tests.el
index e751f562866..85f401eb37b 100644
--- a/test/lisp/vc/vc-bzr-tests.el
+++ b/test/lisp/vc/vc-bzr-tests.el
@@ -106,7 +106,7 @@
106 (should (get-buffer "*vc-log*"))) 106 (should (get-buffer "*vc-log*")))
107 (delete-directory homedir t)))) 107 (delete-directory homedir t))))
108 108
109;; http://lists.gnu.org/archive/html/help-gnu-emacs/2012-04/msg00145.html 109;; https://lists.gnu.org/archive/html/help-gnu-emacs/2012-04/msg00145.html
110(ert-deftest vc-bzr-test-faulty-bzr-autoloads () 110(ert-deftest vc-bzr-test-faulty-bzr-autoloads ()
111 "Test we can generate autoloads in a bzr directory when bzr is faulty." 111 "Test we can generate autoloads in a bzr directory when bzr is faulty."
112 (skip-unless (executable-find vc-bzr-program)) 112 (skip-unless (executable-find vc-bzr-program))
diff --git a/test/manual/etags/c-src/emacs/src/lisp.h b/test/manual/etags/c-src/emacs/src/lisp.h
index c4b78fc628b..0c7da366519 100644
--- a/test/manual/etags/c-src/emacs/src/lisp.h
+++ b/test/manual/etags/c-src/emacs/src/lisp.h
@@ -510,7 +510,7 @@ enum Lisp_Fwd_Type
510 510
511/* If you want to define a new Lisp data type, here are some 511/* If you want to define a new Lisp data type, here are some
512 instructions. See the thread at 512 instructions. See the thread at
513 http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00561.html 513 https://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00561.html
514 for more info. 514 for more info.
515 515
516 First, there are already a couple of Lisp types that can be used if 516 First, there are already a couple of Lisp types that can be used if
diff --git a/test/src/lcms-tests.el b/test/src/lcms-tests.el
index d6d1d16b9ad..cc324af68ba 100644
--- a/test/src/lcms-tests.el
+++ b/test/src/lcms-tests.el
@@ -94,6 +94,38 @@ B is considered the exact value."
94 (apply #'color-xyz-to-xyy (lcms-temp->white-point 7504)) 94 (apply #'color-xyz-to-xyy (lcms-temp->white-point 7504))
95 '(0.29902 0.31485 1.0)))) 95 '(0.29902 0.31485 1.0))))
96 96
97(ert-deftest lcms-roundtrip ()
98 "Test accuracy of converting to and from different color spaces"
99 (skip-unless (featurep 'lcms2))
100 (should
101 (let ((color '(.5 .3 .7)))
102 (lcms-triple-approx-p (lcms-jch->xyz (lcms-xyz->jch color))
103 color
104 0.0001)))
105 (should
106 (let ((color '(.8 -.2 .2)))
107 (lcms-triple-approx-p (lcms-jch->jab (lcms-jab->jch color))
108 color
109 0.0001))))
110
111(ert-deftest lcms-ciecam02-gold ()
112 "Test CIE CAM02 JCh gold values"
113 (skip-unless (featurep 'lcms2))
114 (should
115 (lcms-triple-approx-p
116 (lcms-xyz->jch '(0.1931 0.2393 0.1014)
117 '(0.9888 0.900 0.3203)
118 '(18 200 1 1.0))
119 '(48.0314 38.7789 191.0452)
120 0.02))
121 (should
122 (lcms-triple-approx-p
123 (lcms-xyz->jch '(0.1931 0.2393 0.1014)
124 '(0.9888 0.90 0.3203)
125 '(18 20 1 1.0))
126 '(47.6856 36.0527 185.3445)
127 0.09)))
128
97(ert-deftest lcms-dE-cam02-ucs-silver () 129(ert-deftest lcms-dE-cam02-ucs-silver ()
98 "Test CRI-CAM02-UCS deltaE metric values from colorspacious." 130 "Test CRI-CAM02-UCS deltaE metric values from colorspacious."
99 (skip-unless (featurep 'lcms2)) 131 (skip-unless (featurep 'lcms2))
@@ -114,4 +146,16 @@ B is considered the exact value."
114 8.503323264883667 146 8.503323264883667
115 0.04))) 147 0.04)))
116 148
149(ert-deftest lcms-jmh->cam02-ucs-silver ()
150 "Compare JCh conversion to CAM02-UCS to values from colorspacious."
151 (skip-unless (featurep 'lcms2))
152 (should
153 (lcms-triple-approx-p (lcms-jch->jab '(50 20 10))
154 '(62.96296296 16.22742674 2.86133316)
155 0.05))
156 (should
157 (lcms-triple-approx-p (lcms-jch->jab '(10 60 100))
158 '(15.88785047 -6.56546789 37.23461867)
159 0.04)))
160
117;;; lcms-tests.el ends here 161;;; lcms-tests.el ends here