diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2011-10-01 20:49:36 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-27 13:27:51 +0000 |
commit | 921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch) | |
tree | 3c4a89176ea67fe4c7bf7b375488361a823c95fa /tests/test-hgweb-empty.t | |
parent | 9039c805b0a7e36220101323f82735f08a104b37 (diff) | |
download | mercurial-tarball-master.tar.gz |
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
Diffstat (limited to 'tests/test-hgweb-empty.t')
-rw-r--r-- | tests/test-hgweb-empty.t | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/tests/test-hgweb-empty.t b/tests/test-hgweb-empty.t index 33d6cfd..010e55c 100644 --- a/tests/test-hgweb-empty.t +++ b/tests/test-hgweb-empty.t @@ -1,12 +1,10 @@ - $ "$TESTDIR/hghave" serve || exit 80 - Some tests for hgweb in an empty repository $ hg init test $ cd test $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log $ cat hg.pid >> $DAEMON_PIDS - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'shortlog') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/shortlog') 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -91,7 +89,7 @@ Some tests for hgweb in an empty repository </body> </html> - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'log') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log') 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -176,7 +174,7 @@ Some tests for hgweb in an empty repository </body> </html> - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'graph') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/graph') 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -250,6 +248,16 @@ Some tests for hgweb in an empty repository var graph = new Graph(); graph.scale(39); + graph.edge = function(x0, y0, x1, y1, color) { + + this.setColor(color, 0.0, 0.65); + this.ctx.beginPath(); + this.ctx.moveTo(x0, y0); + this.ctx.lineTo(x1, y1); + this.ctx.stroke(); + + } + var revlink = '<li style="_STYLE"><span class="desc">'; revlink += '<a href="/rev/_NODEID" title="_NODEID">_DESC</a>'; revlink += '</span>_TAGS<span class="info">_DATE, by _USER</span></li>'; @@ -322,7 +330,7 @@ Some tests for hgweb in an empty repository </body> </html> - $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file') + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file') 200 Script output follows <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> @@ -395,5 +403,3 @@ Some tests for hgweb in an empty repository </body> </html> - - $ cd .. |