Skip to content

Commit 4c50868

Browse files
chigleyoalders
authored andcommitted
Add more HTTP::Cookies::Netscape test cases
1 parent 52b814b commit 4c50868

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

t/cookies.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ unlink($file);
419419

420420
# Expect a HttpOnly cookie to be loaded, rather than treated as a comment
421421
$c = HTTP::Cookies::Netscape->new(file => 't/data/netscape-httponly.txt');
422-
ok(count_cookies($c), 2);
422+
ok(count_cookies($c), 4);
423423
undef($c);
424424

425425
#

t/data/netscape-httponly.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,16 @@
22
# http://www.netscape.com/newsref/std/cookie_spec.html
33
# This is a generated file! Do not edit.
44

5+
# Should be loaded as normal
56
www.acme.com FALSE / FALSE 2147483647 foo1 bar
7+
8+
# Should be loaded with hostname www.acme.com
69
#HttpOnly_www.acme.com FALSE / FALSE 2147483647 foo2 bar
10+
#HttpOnly_www.acme.com FALSE / FALSE 2147483647 foo3 bar
11+
#HttpOnly_www.acme.com FALSE / FALSE 2147483647 foo4 bar
12+
13+
# Should not be loaded (double prefix)
14+
#HttpOnly_#HttpOnly_www.acme.com FALSE / FALSE 2147483647 foo5 bar
15+
16+
# Should not be loaded (case-sensitivity)
17+
#Httponly_www.acme.com FALSE / FALSE 2147483647 foo6 bar

0 commit comments

Comments
 (0)