Author: stas
Date: Tue Nov 30 20:26:06 2004
New Revision: 109279

URL: http://svn.apache.org/viewcvs?view=rev&rev=109279
Log:
add the forgotten test

Added:
   httpd/test/trunk/perl-framework/Apache-Test/t/cookies.t

Added: httpd/test/trunk/perl-framework/Apache-Test/t/cookies.t
Url: 
http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/Apache-Test/t/cookies.t?view=auto&rev=109279
==============================================================================
--- (empty file)
+++ httpd/test/trunk/perl-framework/Apache-Test/t/cookies.t     Tue Nov 30 
20:26:06 2004
@@ -0,0 +1,18 @@
+# this test tests how a cookie jar can be passed (needs lwp)
+
+use strict;
+use warnings FATAL => 'all';
+
+use Apache::Test;
+use Apache::TestRequest;
+use Apache::TestUtil;
+
+plan tests => 2, need [qw(CGI CGI::Cookie)],
+    need_module('mod_cgi.c'), need_lwp;
+
+Apache::TestRequest::user_agent( cookie_jar => {} );
+
+my $url = '/cgi-bin/cookies.pl';
+
+ok t_cmp GET_BODY($url), 'new', "new cookie";
+ok t_cmp GET_BODY($url), 'exists', "existing cookie";

Reply via email to