From 921ced43c48c1d170452a7b251b94cc96ec8dd44 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sat, 1 Oct 2011 20:49:36 +0000 Subject: Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz. --- tests/test-hgweb.t | 71 +++++++++--------------------------------------------- 1 file changed, 11 insertions(+), 60 deletions(-) (limited to 'tests/test-hgweb.t') diff --git a/tests/test-hgweb.t b/tests/test-hgweb.t index e8846a3..5a8a1e4 100644 --- a/tests/test-hgweb.t +++ b/tests/test-hgweb.t @@ -1,5 +1,3 @@ - $ "$TESTDIR/hghave" serve || exit 80 - Some tests for hgweb. Tests static files, plain files and different 404's. $ hg init test @@ -15,7 +13,7 @@ Some tests for hgweb. Tests static files, plain files and different 404's. manifest - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/?style=raw') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw') 200 Script output follows @@ -23,7 +21,7 @@ manifest -rw-r--r-- 4 foo - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/da?style=raw') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/da?style=raw') 200 Script output follows @@ -33,14 +31,14 @@ manifest plain file - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/foo?style=raw' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?style=raw' 200 Script output follows foo should give a 404 - static file that does not exist - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'static/bogus' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/bogus' 404 Not Found @@ -67,8 +65,6 @@ should give a 404 - static file that does not exist
  • tags
  • bookmarks
  • branches
  • - - @@ -106,7 +102,7 @@ should give a 404 - static file that does not exist should give a 404 - bad revision - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/spam/foo?style=raw' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/spam/foo?style=raw' 404 Not Found @@ -115,7 +111,7 @@ should give a 404 - bad revision should give a 400 - bad command - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/foo?cmd=spam&style=raw' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw' 400* (glob) @@ -124,13 +120,13 @@ should give a 400 - bad command should give a 404 - file does not exist - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/bork?style=raw' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw' 404 Not Found error: bork@2ef0ac749a14: not found in manifest [1] - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/bork' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork' 404 Not Found @@ -157,8 +153,6 @@ should give a 404 - file does not exist
  • tags
  • bookmarks
  • branches
  • - - @@ -193,7 +187,7 @@ should give a 404 - file does not exist [1] - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'diff/tip/bork?style=raw' + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/bork?style=raw' 404 Not Found @@ -202,7 +196,7 @@ should give a 404 - file does not exist try bad style - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/?style=foobar') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=foobar') 200 Script output follows @@ -310,7 +304,7 @@ Test the access/error files are opened in append mode static file - $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT 'static/style-gitweb.css' + $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT '/static/style-gitweb.css' 200 Script output follows body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; } @@ -441,52 +435,9 @@ static file top: -3px; font-style: italic; } - - /* Comparison */ - .legend { - padding: 1.5% 0 1.5% 0; - } - - .legendinfo { - border: 1px solid #d9d8d1; - font-size: 80%; - text-align: center; - padding: 0.5%; - } - - .equal { - background-color: #ffffff; - } - - .delete { - background-color: #faa; - color: #333; - } - - .insert { - background-color: #ffa; - } - - .replace { - background-color: #e8e8e8; - } - - .comparison { - overflow-x: auto; - } - - .header th { - text-align: center; - } - - .block { - border-top: 1px solid #d9d8d1; - } 304 Not Modified errors $ cat errors.log - - $ cd .. -- cgit v1.2.1