diff --git a/tests/test-hgwebdir b/tests/test-hgwebdir
--- a/tests/test-hgwebdir
+++ b/tests/test-hgwebdir
@@ -64,8 +64,12 @@ cat hg.pid >> $DAEMON_PIDS
echo % should succeed, slashy names
"$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=paper' \
+ | sed -r "s/[0-9]+ seconds? ago/seconds ago/"
"$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t?style=raw'
"$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw'
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=paper' \
+ | sed -r "s/[0-9]+ seconds? ago/seconds ago/"
"$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a?style=atom' \
| sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
"$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/?style=atom' \
diff --git a/tests/test-hgwebdir.out b/tests/test-hgwebdir.out
--- a/tests/test-hgwebdir.out
+++ b/tests/test-hgwebdir.out
@@ -43,6 +43,55 @@ 200 Script output follows
200 Script output follows
+
+
+
+
+
+
+
+Mercurial repositories index
+
+
+
+
+
+
+
Mercurial Repositories
+
+
+
+ Name |
+ Description |
+ Contact |
+ Last change |
+ |
+
+ b | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+coll/a | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+coll/a/.hg/patches | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+coll/b | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+coll/c | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+rcoll/a | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+rcoll/a/.hg/patches | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+rcoll/b | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+rcoll/b/d | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+rcoll/c | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+t/a | unknown | Foo Bar <foo.bar@example.com> | seconds ago | |
+
+
+
+
+
+
+
+
+
+200 Script output follows
+
/t/a/
@@ -53,6 +102,45 @@ 200 Script output follows
200 Script output follows
+
+
+
+
+
+
+
+Mercurial repositories index
+
+
+
+
+
+
+
Mercurial Repositories
+
+
+
+
+
+
+
+
+
+200 Script output follows
+