aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Eggert2017-09-13 15:46:16 -0700
committerPaul Eggert2017-09-13 15:54:25 -0700
commit5da53a01912c2f5d46f5df4ef8cc13a34b5017d4 (patch)
tree63f91a55c570c93b20c9362019ada9241a677d7e /test
parente7d6c622090dd2f4c77fbd04aba89c30a75514dd (diff)
downloademacs-5da53a01912c2f5d46f5df4ef8cc13a34b5017d4.tar.gz
emacs-5da53a01912c2f5d46f5df4ef8cc13a34b5017d4.zip
Prefer HTTPS to HTTP for gnu.org
This patch just changes code files; a followup companion patch (much larger) will affect the commentary. This part is separated out to make it easier to review. * .dir-locals.el (change-log-mode): * lisp/org/org-info.el (org-info-other-documents) (org-info-map-html-url): * lisp/org/ox-html.el (org-html-creator-string): * lisp/startup.el (fancy-startup-text, fancy-about-text) (fancy-splash-head): * test/lisp/ffap-tests.el (ffap-other-window--bug-25352): * test/lisp/thingatpt-tests.el (thing-at-point-test-data): Use HTTPS instead of HTTP.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/ffap-tests.el8
-rw-r--r--test/lisp/thingatpt-tests.el32
2 files changed, 20 insertions, 20 deletions
diff --git a/test/lisp/ffap-tests.el b/test/lisp/ffap-tests.el
index 1862c6c3277..0b90d640364 100644
--- a/test/lisp/ffap-tests.el
+++ b/test/lisp/ffap-tests.el
@@ -17,7 +17,7 @@
17;; GNU General Public License for more details. 17;; GNU General Public License for more details.
18 18
19;; You should have received a copy of the GNU General Public License 19;; You should have received a copy of the GNU General Public License
20;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 20;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
21 21
22;;; Commentary: 22;;; Commentary:
23 23
@@ -28,7 +28,7 @@
28(require 'ffap) 28(require 'ffap)
29 29
30(ert-deftest ffap-tests-25243 () 30(ert-deftest ffap-tests-25243 ()
31 "Test for http://debbugs.gnu.org/25243 ." 31 "Test for https://debbugs.gnu.org/25243 ."
32 (let ((file (make-temp-file "test-Bug#25243"))) 32 (let ((file (make-temp-file "test-Bug#25243")))
33 (unwind-protect 33 (unwind-protect
34 (with-temp-file file 34 (with-temp-file file
@@ -72,12 +72,12 @@ Host = example.com\n")
72left alone when opening a URL in an external browser." 72left alone when opening a URL in an external browser."
73 (cl-letf* ((old (current-window-configuration)) 73 (cl-letf* ((old (current-window-configuration))
74 ((symbol-function 'ffap-prompter) 74 ((symbol-function 'ffap-prompter)
75 (lambda () "http://www.gnu.org")) 75 (lambda () "https://www.gnu.org"))
76 (urls nil) 76 (urls nil)
77 (ffap-url-fetcher (lambda (url) (push url urls) nil))) 77 (ffap-url-fetcher (lambda (url) (push url urls) nil)))
78 (should-not (ffap-other-window)) 78 (should-not (ffap-other-window))
79 (should (equal (current-window-configuration) old)) 79 (should (equal (current-window-configuration) old))
80 (should (equal urls '("http://www.gnu.org"))))) 80 (should (equal urls '("https://www.gnu.org")))))
81 81
82(provide 'ffap-tests) 82(provide 'ffap-tests)
83 83
diff --git a/test/lisp/thingatpt-tests.el b/test/lisp/thingatpt-tests.el
index 128534264e5..aeee3b52de9 100644
--- a/test/lisp/thingatpt-tests.el
+++ b/test/lisp/thingatpt-tests.el
@@ -15,23 +15,23 @@
15;; GNU General Public License for more details. 15;; GNU General Public License for more details.
16 16
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19 19
20;;; Code: 20;;; Code:
21 21
22(require 'ert) 22(require 'ert)
23 23
24(defvar thing-at-point-test-data 24(defvar thing-at-point-test-data
25 '(("http://1.gnu.org" 1 url "http://1.gnu.org") 25 '(("https://1.gnu.org" 1 url "https://1.gnu.org")
26 ("http://2.gnu.org" 6 url "http://2.gnu.org") 26 ("https://2.gnu.org" 6 url "https://2.gnu.org")
27 ("http://3.gnu.org" 19 url "http://3.gnu.org") 27 ("https://3.gnu.org" 19 url "https://3.gnu.org")
28 ("https://4.gnu.org" 1 url "https://4.gnu.org") 28 ("https://4.gnu.org" 1 url "https://4.gnu.org")
29 ("A geo URI (geo:3.14159,-2.71828)." 12 url "geo:3.14159,-2.71828") 29 ("A geo URI (geo:3.14159,-2.71828)." 12 url "geo:3.14159,-2.71828")
30 ("Visit http://5.gnu.org now." 5 url nil) 30 ("Visit https://5.gnu.org now." 5 url nil)
31 ("Visit http://6.gnu.org now." 7 url "http://6.gnu.org") 31 ("Visit https://6.gnu.org now." 7 url "https://6.gnu.org")
32 ("Visit http://7.gnu.org now." 22 url "http://7.gnu.org") 32 ("Visit https://7.gnu.org now." 22 url "https://7.gnu.org")
33 ("Visit http://8.gnu.org now." 22 url "http://8.gnu.org") 33 ("Visit https://8.gnu.org now." 22 url "https://8.gnu.org")
34 ("Visit http://9.gnu.org now." 24 url nil) 34 ("Visit https://9.gnu.org now." 25 url nil)
35 ;; Invalid URIs 35 ;; Invalid URIs
36 ("<<<<" 2 url nil) 36 ("<<<<" 2 url nil)
37 ("<>" 1 url nil) 37 ("<>" 1 url nil)
@@ -48,13 +48,13 @@
48 ("Url: <url:foo://2.example.com>..." 30 url "foo://2.example.com") 48 ("Url: <url:foo://2.example.com>..." 30 url "foo://2.example.com")
49 ("Url: <url:foo://www.gnu.org/a bc>..." 20 url "foo://www.gnu.org/a bc") 49 ("Url: <url:foo://www.gnu.org/a bc>..." 20 url "foo://www.gnu.org/a bc")
50 ;; Hack used by thing-at-point: drop punctuation at end of URI. 50 ;; Hack used by thing-at-point: drop punctuation at end of URI.
51 ("Go to http://www.gnu.org, for details" 7 url "http://www.gnu.org") 51 ("Go to https://www.gnu.org, for details" 7 url "https://www.gnu.org")
52 ("Go to http://www.gnu.org." 24 url "http://www.gnu.org") 52 ("Go to https://www.gnu.org." 24 url "https://www.gnu.org")
53 ;; Standard URI delimiters 53 ;; Standard URI delimiters
54 ("Go to \"http://10.gnu.org\"." 8 url "http://10.gnu.org") 54 ("Go to \"https://10.gnu.org\"." 8 url "https://10.gnu.org")
55 ("Go to \"http://11.gnu.org/\"." 26 url "http://11.gnu.org/") 55 ("Go to \"https://11.gnu.org/\"." 26 url "https://11.gnu.org/")
56 ("Go to <http://12.gnu.org> now." 8 url "http://12.gnu.org") 56 ("Go to <https://12.gnu.org> now." 8 url "https://12.gnu.org")
57 ("Go to <http://13.gnu.org> now." 24 url "http://13.gnu.org") 57 ("Go to <https://13.gnu.org> now." 24 url "https://13.gnu.org")
58 ;; Parenthesis handling (non-standard) 58 ;; Parenthesis handling (non-standard)
59 ("http://example.com/a(b)c" 21 url "http://example.com/a(b)c") 59 ("http://example.com/a(b)c" 21 url "http://example.com/a(b)c")
60 ("http://example.com/a(b)" 21 url "http://example.com/a(b)") 60 ("http://example.com/a(b)" 21 url "http://example.com/a(b)")
@@ -87,7 +87,7 @@ position to retrieve THING.")
87;; These tests reflect the actual behavior of 87;; These tests reflect the actual behavior of
88;; `thing-at-point-bounds-of-list-at-point'. 88;; `thing-at-point-bounds-of-list-at-point'.
89(ert-deftest thing-at-point-bug24627 () 89(ert-deftest thing-at-point-bug24627 ()
90 "Test for http://debbugs.gnu.org/24627 ." 90 "Test for https://debbugs.gnu.org/24627 ."
91 (let ((string-result '(("(a \"b\" c)" . (a "b" c)) 91 (let ((string-result '(("(a \"b\" c)" . (a "b" c))
92 (";(a \"b\" c)") 92 (";(a \"b\" c)")
93 ("(a \"b\" c\n)" . (a "b" c)) 93 ("(a \"b\" c\n)" . (a "b" c))