You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@apache.org on 2004/04/27 19:00:44 UTC
cvs commit: xml-axkit/t/provider 02dir.t
matts 2004/04/27 10:00:44
Modified: t/conf extra.last.conf.in
t/encoding 01_utf8.t
Added: t/htdocs/provider/dir testfile.txt testfile2.txt
t/htdocs/style/provider filelist2html.xsl
t/provider 02dir.t
Log:
Dir provider tests
Revision Changes Path
1.9 +14 -2 xml-axkit/t/conf/extra.last.conf.in
Index: extra.last.conf.in
===================================================================
RCS file: /home/cvs/xml-axkit/t/conf/extra.last.conf.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- extra.last.conf.in 31 Jan 2004 19:28:32 -0000 1.8
+++ extra.last.conf.in 27 Apr 2004 17:00:44 -0000 1.9
@@ -136,10 +136,22 @@
</Location>
<Location "/provider/post">
- Sethandler axkit
+ SetHandler axkit
AxResetProcessors
AxContentProvider Apache::AxKit::Provider::POST
AxAddRootProcessor text/xsl /style/provider/01.xsl root
</Location>
-
+<Location "/provider/dir">
+ Options +All
+ DirectoryIndex index.xml index.html
+ SetHandler axkit
+ AxHandleDirs On
+# NB: Some of this was used to find the cause of bug 4499.
+ #SetHandler perl-script
+ #PerlHandler AxKit
+ #AddHandler axkit .xml .xsp
+ AxAddRootProcessor text/xsl \
+ /style/provider/filelist2html.xsl \
+ {http://axkit.org/2002/filelist}filelist
+</Location>
1.3 +0 -1 xml-axkit/t/encoding/01_utf8.t
Index: 01_utf8.t
===================================================================
RCS file: /home/cvs/xml-axkit/t/encoding/01_utf8.t,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- 01_utf8.t 8 Sep 2003 07:08:04 -0000 1.2
+++ 01_utf8.t 27 Apr 2004 17:00:44 -0000 1.3
@@ -10,7 +10,6 @@
sub test_basic {
use bytes;
my $resp = GET '/encoding/01.xml' ;
- # warn("# GOT CONTENT:" . $resp->content() . "\n");
my $bytes = unpack("U0A*", $resp->content());
return 0 unless $bytes =~ /\xC2\xA9/;
return 1;
1.1 xml-axkit/t/htdocs/provider/dir/testfile.txt
<<Binary file>>
1.1 xml-axkit/t/htdocs/provider/dir/testfile2.txt
<<Binary file>>
1.1 xml-axkit/t/htdocs/style/provider/filelist2html.xsl
Index: filelist2html.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:f="http://axkit.org/2002/filelist" version="1.0">
<xsl:template match="f:filelist">
<root>document transformed</root>
</xsl:template>
</xsl:stylesheet>
1.1 xml-axkit/t/provider/02dir.t
Index: 02dir.t
===================================================================
#!perl
use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest qw( GET ) ;
plan tests => 1, have_module qw(LWP);
sub test_basic {
my $resp = GET '/provider/dir';
return 0 unless $resp->content =~ /document transformed/gi;
return 1;
}
ok(test_basic(), 1, "testing dir provider (AxHandleDirs)");