diff tests/test-hgweb-commands.t @ 16137:8fd18eb8aab7

templates: move Graph.edge() implementation in mercurial.js All implementation in graph.tmpl are the same. It can still be overriden if necessary. There is no clear reason to keep it separated from mercurial.js.
author Patrick Mezard <patrick@mezard.eu>
date Fri, 17 Feb 2012 16:49:43 +0100
parents 33f702e52906
children 6e4de55a41a4
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t	Mon Feb 20 16:42:51 2012 -0600
+++ b/tests/test-hgweb-commands.t	Fri Feb 17 16:49:43 2012 +0100
@@ -961,16 +961,6 @@
   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 class="list" href="/rev/_NODEID?style=gitweb" title="_NODEID"><b>_DESC</b></a>';
   revlink += '</span> _TAGS';