aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/shr-tests.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lisp/net/shr-tests.el b/test/lisp/net/shr-tests.el
index dd820e2d9f4..c3be36439e0 100644
--- a/test/lisp/net/shr-tests.el
+++ b/test/lisp/net/shr-tests.el
@@ -53,6 +53,19 @@
53 (unless (equal (car result) (cdr result)) 53 (unless (equal (car result) (cdr result))
54 (should (not (list name (car result) (cdr result)))))))) 54 (should (not (list name (car result) (cdr result))))))))
55 55
56(ert-deftest use-cookies ()
57 (let ((shr-cookie-policy 'same-origin))
58 (should
59 (shr--use-cookies-p "http://images.fsf.org" '("http://www.fsf.org")))
60 (should
61 (shr--use-cookies-p "http://www.fsf.org" '("https://www.fsf.org")))
62 (should
63 (shr--use-cookies-p "http://www.fsf.org" '("https://www.fsf.org")))
64 (should
65 (shr--use-cookies-p "http://www.fsf.org" '("http://fsf.org")))
66 (should-not
67 (shr--use-cookies-p "http://www.gnu.org" '("http://www.fsf.org")))))
68
56(require 'shr) 69(require 'shr)
57 70
58;;; shr-stream-tests.el ends here 71;;; shr-stream-tests.el ends here