tests/test-hgweb-commands.t
changeset 35255 ad0de63e1d6a
parent 35235 4a6c51f5ae4d
child 35407 27ab3150cd50
--- a/tests/test-hgweb-commands.t	Wed Dec 06 12:01:07 2017 +0800
+++ b/tests/test-hgweb-commands.t	Wed Dec 06 12:10:16 2017 +0800
@@ -1821,22 +1821,8 @@
   graph.scale(39);
   
   graph.vertex = function(x, y, radius, color, parity, cur) {
-  	
-  	this.ctx.beginPath();
-  	color = this.setColor(color, 0.25, 0.75);
-  	this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
-  	this.ctx.fill();
-  	
-  	var bg = '<li class="bg parity' + parity + '"></li>';
-  	var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size;
-  	
-  	var item = document.querySelector('[data-node="' + cur.node + '"]');
-  	if (item) {
-  		item.style.paddingLeft = left + 'px';
-  	}
-  	
-  	return [bg, ''];
-  	
+  	Graph.prototype.vertex.apply(this, arguments);
+  	return ['<li class="bg parity' + parity + '"></li>', ''];
   }
   
   graph.render(data);