diff options
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 .. |