changeset 30747:4259df518223

hgweb: test the order of archive links
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 11 Jan 2017 01:25:07 +0800
parents 9cb0bb0f29f0
children 319914d57b9e
files tests/test-archive.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-archive.t	Thu Jan 05 17:16:51 2017 +0000
+++ b/tests/test-archive.t	Wed Jan 11 01:25:07 2017 +0800
@@ -61,6 +61,13 @@
   $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
   $ cat hg.pid >> $DAEMON_PIDS
 
+check archive links' order
+
+  $ get-with-headers.py localhost:$HGPORT "?revcount=1" | grep '/archive/tip.'
+  <a href="/archive/tip.zip">zip</a>
+  <a href="/archive/tip.tar.gz">gz</a>
+  <a href="/archive/tip.tar.bz2">bz2</a>
+
 invalid arch type should give 404
 
   $ get-with-headers.py localhost:$HGPORT "archive/tip.invalid" | head -n 1