Mercurial > hg
diff tests/test-hgwebdir @ 8217:d895158fe8af
tests: add tests for styled hgwebdir pages
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 27 Apr 2009 11:35:18 +0200 |
parents | e60aaae83323 |
children | 0eade101f762 |
line wrap: on
line diff
--- a/tests/test-hgwebdir Mon Apr 27 11:37:30 2009 +0200 +++ b/tests/test-hgwebdir Mon Apr 27 11:35:18 2009 +0200 @@ -64,8 +64,12 @@ 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' \