about summary refs log tree commit homepage
path: root/t/cgi.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-07 01:39:37 +0000
committerEric Wong <e@80x24.org>2016-07-07 01:44:10 +0000
commita380c9b55b39a4db6a21131332a2a5629428dded (patch)
tree9a279e2b0809cda1ff978a3f584c5da7b4ac8608 /t/cgi.t
parent8e85257577ee4d7d49e59f048852d9d4ac6f8172 (diff)
downloadpublic-inbox-a380c9b55b39a4db6a21131332a2a5629428dded.tar.gz
We now generate all of our HTML using WwwStream which
forces us to have consistent headers and footers in
the HTML itself.

This also makes the search-capable vs search-less installs
go to the new.html endpoint to maintain consistency
(in case an admin decides to enable Xapian).
Diffstat (limited to 't/cgi.t')
-rw-r--r--t/cgi.t17
1 files changed, 1 insertions, 16 deletions
diff --git a/t/cgi.t b/t/cgi.t
index 720925ae..a0f09c59 100644
--- a/t/cgi.t
+++ b/t/cgi.t
@@ -131,21 +131,6 @@ EOF
         like($res->{body}, qr/what\?/, "reply included");
 }
 
-# indices
-{
-        local $ENV{HOME} = $home;
-        my $res = cgi_run("/test/");
-        like($res->{head}, qr/Status: 200 OK/, "index returns 200");
-
-        my $idx = cgi_run("/test/index.html");
-        $idx->{body} =~ s!/index.html(\?r=)!/$1!g; # dirty...
-        $idx->{body} = [ split(/\n/, $idx->{body}) ];
-        $res->{body} = [ split(/\n/, $res->{body}) ];
-        is_deeply($res, $idx,
-                '/$INBOX/ and /$INBOX/index.html are nearly identical');
-        # more checks in t/feed.t
-}
-
 # message-id pages
 {
         local $ENV{HOME} = $home;
@@ -187,7 +172,7 @@ EOF
         $res = cgi_run("/test/blahblah\@example.con/");
         like($res->{head}, qr/Status: 300 Multiple Choices/, "mid html miss");
 
-        $res = cgi_run("/test/");
+        $res = cgi_run("/test/new.html");
         like($res->{body}, qr/slashy%2Fasdf%40example\.com/,
                 "slashy URL generated correctly");
 }